Difference between revisions of "User:WikiSysop/Sandbox/Badquery"

MyWikiBiz, Author Your Legacy — Friday November 29, 2024
Jump to navigationJump to search
Line 91: Line 91:
 
===Correct category===
 
===Correct category===
  
Possible choices:
+
Best choice:
  
 
+
{{#ask: [[Category:Accidents and incidents on commercial airliners in the United States]]
{{#ask: [[Category:1986 in the United States]][[Fatalities::>0]]
 
|
 
| ?Date=Date
 
| ?Accident_Cause=Cause
 
| ?Aircraft_Type=Aircraft
 
| ?Airline=Airline
 
| ?Airport_Code=Airport involved
 
| ?Miles_Traveled=Miles Traveled
 
| ?State_Code=State of incident
 
| ?Survivors=Survivors
 
| ?Fatalities=Deaths
 
}}
 
 
 
 
 
{{#ask: [[Category:Accidents and incidents on commercial airliners in the United States]][[Fatalities::>0]]
 
|
 
| ?Date=Date
 
| ?Accident_Cause=Cause
 
| ?Aircraft_Type=Aircraft
 
| ?Airline=Airline
 
| ?Airport_Code=Airport involved
 
| ?Miles_Traveled=Miles Traveled
 
| ?State_Code=State of incident
 
| ?Survivors=Survivors
 
| ?Fatalities=Deaths
 
}}
 
 
 
{{#ask: [[Category:Airliner crashes caused by pilot error]][[Fatalities::>0]]
 
|
 
| ?Date=Date
 
| ?Accident_Cause=Cause
 
| ?Aircraft_Type=Aircraft
 
| ?Airline=Airline
 
| ?Airport_Code=Airport involved
 
| ?Miles_Traveled=Miles Traveled
 
| ?State_Code=State of incident
 
| ?Survivors=Survivors
 
| ?Fatalities=Deaths
 
}}
 
 
 
 
 
{{#ask: [[Category:Aviation accidents and incidents in 1986]][[Fatalities::>0]]
 
|
 
| ?Date=Date
 
| ?Accident_Cause=Cause
 
| ?Aircraft_Type=Aircraft
 
| ?Airline=Airline
 
| ?Airport_Code=Airport involved
 
| ?Miles_Traveled=Miles Traveled
 
| ?State_Code=State of incident
 
| ?Survivors=Survivors
 
| ?Fatalities=Deaths
 
}}
 
 
 
{{#ask: [[Category:Mid-air collisions]][[Fatalities::>0]]
 
|
 
| ?Date=Date
 
| ?Accident_Cause=Cause
 
| ?Aircraft_Type=Aircraft
 
| ?Airline=Airline
 
| ?Airport_Code=Airport involved
 
| ?Miles_Traveled=Miles Traveled
 
| ?State_Code=State of incident
 
| ?Survivors=Survivors
 
| ?Fatalities=Deaths
 
}}
 
 
 
{{#ask: [[Category:Cerritos, California]][[Fatalities::>0]]
 
|
 
| ?Date=Date
 
| ?Accident_Cause=Cause
 
| ?Aircraft_Type=Aircraft
 
| ?Airline=Airline
 
| ?Airport_Code=Airport involved
 
| ?Miles_Traveled=Miles Traveled
 
| ?State_Code=State of incident
 
| ?Survivors=Survivors
 
| ?Fatalities=Deaths
 
}}
 
 
 
{{#ask: [[Category:Disasters in California]][[Fatalities::>0]]
 
|
 
| ?Date=Date
 
| ?Accident_Cause=Cause
 
| ?Aircraft_Type=Aircraft
 
| ?Airline=Airline
 
| ?Airport_Code=Airport involved
 
| ?Miles_Traveled=Miles Traveled
 
| ?State_Code=State of incident
 
| ?Survivors=Survivors
 
| ?Fatalities=Deaths
 
}}
 
 
 
 
 
{{#ask: [[Category:Mid-air collisions]][[Fatalities::>0]]
 
 
|
 
|
 
| ?Date=Date
 
| ?Date=Date

Revision as of 16:42, 10 October 2010

Query Problems

Character set conversion problems

Incorrect

Incorrect character encoding: Aeroméxic Flight 498

Correct

Correct character encoding: Aeroméxico Flight 498

Ask query syntax

The query used Fatalities (deaths) as the search term.

Original Query:

query

[[Fatalities::>0]][[Fatalities::<1001]]

result
 Date"Date" is a type and predefined property provided by Semantic MediaWiki to represent date values.CauseAircraftAirlineAirport involvedMiles TraveledState of incidentSurvivorsDeaths
Aloha Airlines Flight 24328 April 1988Mechanical (decompression)737Aloha AirlinesOGG100Hawaii941

Good Query:

query

[[Fatalities::>0]]

result
 Date"Date" is a type and predefined property provided by Semantic MediaWiki to represent date values.CauseAircraftAirlineAirport involvedMiles TraveledState of incidentSurvivorsDeaths
Aeroméxico Flight 49831 August 1986Air trafficDC-9AeroméxicoLAX135California064
Aeroméxico Flight 49831 August 1986Air trafficDC-9AeroméxicoLAX135California064
Air Canada Flight 7972 June 1983Mechanical (fire)DC-9Air CanadaCVG814Ohio2323
Air Florida Flight 9013 January 1982Weather (icing)737Air FloridaDCA1District of Columbia574
Air Midwest Flight 54818 January 2003Mechanical (elevators)1900Air MidwestCLT1North Carolina021
Alaska Airlines Flight 26131 January 2000Mechanical (jackscrews)MD83Alaska AirlinesSFO1320California088
Allegheny Airlines Flight 8539 September 1969Air trafficDC-9Allegheny AirlinesIND90Indiana082
Aloha Airlines Flight 24328 April 1988Mechanical (decompression)737Aloha AirlinesOGG100Hawaii941
Continental Flight 340712 February 2009Weather (icing)Dash 8ContinentalBUF280New York050

Page not shown as a link

The page/article name table doesn't contain a clickable link back to that page. The first line in the return result is the name of the first column field which should also be, in this case, the page name.

query

[[Fatalities::>0]][[Fatalities::<1001]]

result
 Date"Date" is a type and predefined property provided by Semantic MediaWiki to represent date values.CauseAircraftAirlineAirport involvedMiles TraveledState of incidentSurvivorsDeaths
Aloha Airlines Flight 24328 April 1988Mechanical (decompression)737Aloha AirlinesOGG100Hawaii941

Good Query:

query

[[Fatalities::>0]]

result
 Date"Date" is a type and predefined property provided by Semantic MediaWiki to represent date values.CauseAircraftAirlineAirport involvedMiles TraveledState of incidentSurvivorsDeaths
Aeroméxico Flight 49831 August 1986Air trafficDC-9AeroméxicoLAX135California064
Aeroméxico Flight 49831 August 1986Air trafficDC-9AeroméxicoLAX135California064
Air Canada Flight 7972 June 1983Mechanical (fire)DC-9Air CanadaCVG814Ohio2323
Air Florida Flight 9013 January 1982Weather (icing)737Air FloridaDCA1District of Columbia574
Air Midwest Flight 54818 January 2003Mechanical (elevators)1900Air MidwestCLT1North Carolina021
Alaska Airlines Flight 26131 January 2000Mechanical (jackscrews)MD83Alaska AirlinesSFO1320California088
Allegheny Airlines Flight 8539 September 1969Air trafficDC-9Allegheny AirlinesIND90Indiana082
Aloha Airlines Flight 24328 April 1988Mechanical (decompression)737Aloha AirlinesOGG100Hawaii941
Continental Flight 340712 February 2009Weather (icing)Dash 8ContinentalBUF280New York050

Correct category

Best choice:

 Date"Date" is a type and predefined property provided by Semantic MediaWiki to represent date values.CauseAircraftAirlineAirport involvedMiles TraveledState of incidentSurvivorsDeaths
Aeroméxico Flight 49831 August 1986Air trafficDC-9AeroméxicoLAX135California064
Aeroméxico Flight 49831 August 1986Air trafficDC-9AeroméxicoLAX135California064
Air Canada Flight 7972 June 1983Mechanical (fire)DC-9Air CanadaCVG814Ohio2323
Air Florida Flight 9013 January 1982Weather (icing)737Air FloridaDCA1District of Columbia574
Air Midwest Flight 54818 January 2003Mechanical (elevators)1900Air MidwestCLT1North Carolina021
Alaska Airlines Flight 26131 January 2000Mechanical (jackscrews)MD83Alaska AirlinesSFO1320California088
Allegheny Airlines Flight 8539 September 1969Air trafficDC-9Allegheny AirlinesIND90Indiana082
Aloha Airlines Flight 24328 April 1988Mechanical (decompression)737Aloha AirlinesOGG100Hawaii941
American Airlines Flight 191
American Airlines Flight 587
Continental Flight 340712 February 2009Weather (icing)Dash 8ContinentalBUF280New York050
Delta Air Lines Flight 191