Simple Question (Direct)
Simple Question
Q5341430
P20
Q56061
USER
Where did Edward A. Batchelor die ?
(Q5341430,P20,c(Q56061))
action filter_type
action find
entity Q5341430
relation P20
type Q56061
['Q5341430', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q5341430 property:P20 ?z . ?z rdf:type ontology:Q56061 }
Edward A. Batchelor
action filter_type
action find
entity Edward A. Batchelor
relation place of death
type administrative territorial entity
['Edward A. Batchelor', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Edward_A._Batchelor property:place_of_death ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q12439
SYSTEM
Detroit
Q12439
(Q5341430,P20,c(Q56061))
action filter_type
action find
entity Q5341430
relation P20
type Q56061
Edward A. Batchelor died in [ANSWER]
['Q5341430', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q5341430 property:P20 ?z . ?z rdf:type ontology:Q56061 }
Detroit
Edward A. Batchelor died in Detroit
Detroit
action filter_type
action find
entity Edward A. Batchelor
relation place of death
type administrative territorial entity
['Edward A. Batchelor', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Edward_A._Batchelor property:place_of_death ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5341430
P21
Q290
USER
What is the sex of Edward A. Batchelor ?
(Q5341430,P21,c(Q290))
action filter_type
action find
entity Q5341430
relation P21
type Q290
['Q5341430', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q5341430 property:P21 ?s . ?s rdf:type ontology:Q290 }
Edward A. Batchelor
action filter_type
action find
entity Edward A. Batchelor
relation gender
type sex
['Edward A. Batchelor', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Edward_A._Batchelor property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5341430,P21,c(Q290))
action filter_type
action find
entity Q5341430
relation P21
type Q290
The sex of Edward A . Batchelor is the [ANSWER]
['Q5341430', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q5341430 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
The sex of Edward A . Batchelor is the male
male
action filter_type
action find
entity Edward A. Batchelor
relation gender
type sex
['Edward A. Batchelor', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Edward_A._Batchelor property:gender ?s . ?s rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P559
Q56061 Q44377 Q728937
USER
How many administrative territories are the endpoints for atmost 1 tunnels and railroad lines ?
(c(Q44377)|c(Q728937),P559,c(Q56061))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q44377
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
value 1
[[{'concept': 'Q44377'}, {'concept': 'Q728937'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?t WHERE { { ?x property:P559 ?t . ?t rdf:type ontology:Q56061 . ?x rdf:type ontology:Q44377 } UNION { ?x property:P559 ?t . ?t rdf:type ontology:Q56061 . ?x rdf:type ontology:Q728937 } } GROUP BY ?t } . FILTER ( ?q <= 1 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type tunnel
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
value 1
[[{'concept': 'tunnel'}, {'concept': 'railroad line'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?t WHERE { { ?x property:terminus ?t . ?t rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:tunnel } UNION { ?x property:terminus ?t . ?t rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:railroad_line } } GROUP BY ?t } . FILTER ( ?q <= 1 ) }
[]
administrative territorial entity tunnel railroad line
SYSTEM
156
Q938820 Q9832 Q3051477 Q1020217 Q3112707 Q11851639 Q23436 Q837211 Q3812238 Q1017610 Q10084 Q375314 Q12439 Q7567083 Q2814 Q541055 Q723164 Q82490 Q4825403 Q172157 Q575557 Q985313 Q23311 Q687333 Q932159 Q49550 Q38511 Q3469728 Q796625 Q185453 Q588804 Q130191 Q3001 Q5902931 Q723372 Q167155 Q2272 Q986100 Q6023 Q7811572 Q7651719 Q171357 Q134620 Q956 Q959 Q992420 Q556989 Q1011611 Q727 Q649 Q2065223 Q211059 Q42159 Q7986745 Q1009428 Q18808 Q1011221 Q7050868 Q24826 Q6509 Q671348 Q28327 Q5477618 Q5032535 Q4093 Q4356873 Q33959 Q11839080 Q586 Q585 Q987170 Q1017331 Q35433 Q1763 Q1449 Q66208 Q2796951 Q848909 Q1420136 Q754868 Q687945 Q125080 Q782155 Q12714367 Q1757 Q36989 Q49218 Q990112 Q100 Q2734845 Q6820370 Q1020951 Q40840 Q542966 Q1616042 Q643944 Q257034 Q1571025 Q756103 Q25330 Q856860 Q517381 Q3992 Q190847 Q1318695 Q1248150 Q2073801 Q1781385 Q1759693 Q369947 Q84 Q2300663 Q2132 Q2703030 Q2133814 Q794802 Q7944369 Q646784 Q79499 Q184383 Q6275457 Q375905 Q263954 Q10561690 Q12892 Q643160 Q6816 Q1735 Q17872 Q129610 Q766594 Q466054 Q953081 Q180717 Q2086787 Q79804 Q895452 Q40325 Q1229951 Q953719 Q580016 Q2290 Q12191 Q244289 Q237253 Q485186 Q588417 Q634172 Q146659 Q522362 Q1729 Q790938 Q530309 Q865872 Q65 Q1085
(c(Q44377)|c(Q728937),P559,c(Q56061))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q44377
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
value 1
[ANSWER]
[[{'concept': 'Q44377'}, {'concept': 'Q728937'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?t WHERE { { ?x property:P559 ?t . ?t rdf:type ontology:Q56061 . ?x rdf:type ontology:Q44377 } UNION { ?x property:P559 ?t . ?t rdf:type ontology:Q56061 . ?x rdf:type ontology:Q728937 } } GROUP BY ?t } . FILTER ( ?q <= 1 ) }
Virrat Eindhoven Ellewoutsdijk Minehead Sedbury Annalankangas Edinburgh Scheveningen Bronygarth Horgoš Vlissingen Folkestone Detroit South Drain Halle (Saale) Oijen Pop Lyme Regis Austrepollen Winchester Grand Tower Ingleton City of London Middleton-by-Wirksworth Hart Maó-Mahón Turku Salford Quays Edale Multan Badrinath Norwich Paramaribo Horda, Norway Narva-Jõesuu Kalamazoo Skien Ridder Lapua Tobermory, Ontario Svartnes Kecskemét Jyväskylä Beijing Vladivostok Fjærland Ankeny Portpatrick Amsterdam Moscow Port Grimaud Jõhvi Hanam West Vale Drymen Pyongyang Kincardine Nordrepollen Liverpool Burgas Worthing Örnsköldsvik Frafjord Cann River Glasgow Mariehäll Nice Akdere, Silifke Bonn Oslo Inčukalns Westport, County Mayo Saint-Rhémy-en-Bosses Murmansk Genoa Frutigen Cumberland Gap Fort William Herøya Cumberland San Bernardino Vaasa Jarrow Granvin Helsinki Pardubice Rochester Littlehampton Boston Henley-in-Arden Merritton, Ontario Ilkley Tampere Angren, Uzbekistan Hessle Asaluyeh Kemble Mullan Lewes Trenton Hammond Dillenburg Liège Alexandroupoli Apoera Wallsend Helmsley Björkhagen South Boston El Cajon London Gaylord Victoria Kilsby St Nicholas-at-Wade Otira Värpinge Moffat Helena Zeebrugge Jong, Norway Deerfield Afobaka Lilla Alby Antwerp Farnham Ulan-Ude Innsbruck Alice Springs Galway Bewdley Mahdia Orivesi Sousse Manitou Springs Sitka Bowling, West Dunbartonshire Springfield L'Estaque South Haven Albina Porsgrunn Nantes Athis-Mons Great Yarmouth Key West Sewell, Chile Banihal Clapham Bad Säckingen Erfurt Aviemore Karkkila Birstall Los Angeles Prague
156
action count
action atmost
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type tunnel
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
value 1
[[{'concept': 'tunnel'}, {'concept': 'railroad line'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?t WHERE { { ?x property:terminus ?t . ?t rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:tunnel } UNION { ?x property:terminus ?t . ?t rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:railroad_line } } GROUP BY ?t } . FILTER ( ?q <= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12439
P740
Q43229
USER
What were formed at Detroit ?
(c(Q43229),P740,Q12439)
action filter_type
action find_reverse
entity Q12439
relation P740
type Q43229
[{'concept': 'Q43229'}, 'P740', 'Q12439']
SELECT DISTINCT ?e WHERE { ?e property:P740 resource:Q12439 . ?e rdf:type ontology:Q43229 }
Detroit
action filter_type
action find_reverse
entity Detroit
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Detroit']
SELECT DISTINCT ?e WHERE { ?e property:location_of_formation resource:Detroit . ?e rdf:type ontology:organization }
[]
organization
Q81965 Q220222 Q569235
SYSTEM
General Motors, Nation of Islam, Saturn Corporation
Q13529947 Q176629 Q3476662 Q7923022 Q220222 Q1114148 Q1470870 Q1638351 Q407744 Q1850517 Q7428836 Q213487 Q569235 Q16984061 Q8071501 Q2123812 Q2171646 Q1060176 Q81965 Q535381 Q131885 Q5531665 Q1313428
(c(Q43229),P740,Q12439)
action filter_type
action find_reverse
entity Q12439
relation P740
type Q43229
[ANSWERS] were formed at Detroit
[{'concept': 'Q43229'}, 'P740', 'Q12439']
SELECT DISTINCT ?e WHERE { ?e property:P740 resource:Q12439 . ?e rdf:type ontology:Q43229 }
Buhl Aircraft Company Nash-Kelvinator Corporation Sea Ray Verville Aircraft Company Nation of Islam Comerica Fruehauf Trailer Corporation Hupmobile Air Products & Chemicals Rickenbacker Saxon Motor Car Company Hummer Saturn Corporation Belle Tire Ziebart R.L. Polk & Co. Jabil Circuit Chalmers Automobile General Motors Palladium Books Scripps-Booth General Aeroplane Company Hudson Motor Car Company
General Motors, Nation of Islam and Saturn Corporation were formed at Detroit
General Motors Nation of Islam Saturn Corporation
action filter_type
action find_reverse
entity Detroit
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Detroit']
SELECT DISTINCT ?e WHERE { ?e property:location_of_formation resource:Detroit . ?e rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12439
P127
Q811430
USER
Which construction belongs to Detroit ?
(c(Q811430),P127,Q12439)
action filter_type
action find_reverse
entity Q12439
relation P127
type Q811430
[{'concept': 'Q811430'}, 'P127', 'Q12439']
SELECT DISTINCT ?x WHERE { ?x property:P127 resource:Q12439 . ?x rdf:type ontology:Q811430 }
Detroit
action filter_type
action find_reverse
entity Detroit
relation owned by
type construction
[{'concept': 'construction'}, 'owned by', 'Detroit']
SELECT DISTINCT ?x WHERE { ?x property:owned_by resource:Detroit . ?x rdf:type ontology:construction }
[]
construction
Q1201545
SYSTEM
Detroit Olympia
Q1201545
(c(Q811430),P127,Q12439)
action filter_type
action find_reverse
entity Q12439
relation P127
type Q811430
Her [ANSWER] belongs to Detroit
[{'concept': 'Q811430'}, 'P127', 'Q12439']
SELECT DISTINCT ?x WHERE { ?x property:P127 resource:Q12439 . ?x rdf:type ontology:Q811430 }
Detroit Olympia
Her Detroit Olympia belongs to Detroit
Detroit Olympia
action filter_type
action find_reverse
entity Detroit
relation owned by
type construction
[{'concept': 'construction'}, 'owned by', 'Detroit']
SELECT DISTINCT ?x WHERE { ?x property:owned_by resource:Detroit . ?x rdf:type ontology:construction }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12439
P190
Q19833031
USER
Which emirate of the United Arab Emirates is the sister city of Detroit ?
(Q12439,P190,c(Q19833031))
action filter_type
action find
entity Q12439
relation P190
type Q19833031
['Q12439', 'P190', {'concept': 'Q19833031'}]
SELECT DISTINCT ?p WHERE { resource:Q12439 property:P190 ?p . ?p rdf:type ontology:Q19833031 }
Detroit
action filter_type
action find
entity Detroit
relation sister city
type emirate of the United Arab Emirates
['Detroit', 'sister city', {'concept': 'emirate of the United Arab Emirates'}]
SELECT DISTINCT ?p WHERE { resource:Detroit property:sister_city ?p . ?p rdf:type ontology:emirate_of_the_United_Arab_Emirates }
[]
emirate of the United Arab Emirates
Q613
SYSTEM
Emirate of Dubai
Q613
(Q12439,P190,c(Q19833031))
action filter_type
action find
entity Q12439
relation P190
type Q19833031
[ANSWER] is the sister city of Detroit
['Q12439', 'P190', {'concept': 'Q19833031'}]
SELECT DISTINCT ?p WHERE { resource:Q12439 property:P190 ?p . ?p rdf:type ontology:Q19833031 }
Emirate of Dubai
Emirate of Dubai is the sister city of Detroit
Emirate of Dubai
action filter_type
action find
entity Detroit
relation sister city
type emirate of the United Arab Emirates
['Detroit', 'sister city', {'concept': 'emirate of the United Arab Emirates'}]
SELECT DISTINCT ?p WHERE { resource:Detroit property:sister_city ?p . ?p rdf:type ontology:emirate_of_the_United_Arab_Emirates }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q93338
Q19833031
USER
And also tell me about Gaziantep?
(Q93338,P190,c(Q19833031))
action filter_type
action find
entity Q93338
relation P190
type Q19833031
['Q93338', 'P190', {'concept': 'Q19833031'}]
SELECT DISTINCT ?s WHERE { resource:Q93338 property:P190 ?s . ?s rdf:type ontology:Q19833031 }
Gaziantep
action filter_type
action find
entity Gaziantep
relation sister city
type emirate of the United Arab Emirates
['Gaziantep', 'sister city', {'concept': 'emirate of the United Arab Emirates'}]
SELECT DISTINCT ?s WHERE { resource:Gaziantep property:sister_city ?s . ?s rdf:type ontology:emirate_of_the_United_Arab_Emirates }
[]
emirate of the United Arab Emirates
Q613
SYSTEM
Emirate of Dubai
Q613
(Q93338,P190,c(Q19833031))
action filter_type
action find
entity Q93338
relation P190
type Q19833031
[ANSWER]
['Q93338', 'P190', {'concept': 'Q19833031'}]
SELECT DISTINCT ?s WHERE { resource:Q93338 property:P190 ?s . ?s rdf:type ontology:Q19833031 }
Emirate of Dubai
Emirate of Dubai
action filter_type
action find
entity Gaziantep
relation sister city
type emirate of the United Arab Emirates
['Gaziantep', 'sister city', {'concept': 'emirate of the United Arab Emirates'}]
SELECT DISTINCT ?s WHERE { resource:Gaziantep property:sister_city ?s . ?s rdf:type ontology:emirate_of_the_United_Arab_Emirates }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4800566 Q1201545
P115
Q12973014
USER
Which sports teams have Detroit Olympia or Arthur W. Perdue Stadium as their ground ?
OR((c(Q12973014),P115,Q1201545), (c(Q12973014),P115,Q4800566))
action filter_type
action union
action find_reverse
entity Q1201545
relation P115
action find_reverse
entity Q4800566
relation P115
type Q12973014
{'OR': [[{'concept': 'Q12973014'}, 'P115', 'Q1201545'], [{'concept': 'Q12973014'}, 'P115', 'Q4800566']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12973014 . { { ?h property:P115 resource:Q1201545 } UNION { ?h property:P115 resource:Q4800566 } } }
Arthur W. Perdue Stadium Detroit Olympia
action filter_type
action union
action find_reverse
entity Detroit Olympia
relation home venue
action find_reverse
entity Arthur W. Perdue Stadium
relation home venue
type sports team
{'OR': [[{'concept': 'sports team'}, 'home venue', 'Detroit Olympia'], [{'concept': 'sports team'}, 'home venue', 'Arthur W. Perdue Stadium']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sports_team . { { ?h property:home_venue resource:Detroit_Olympia } UNION { ?h property:home_venue resource:Arthur_W._Perdue_Stadium } } }
[]
sports team
Q5254272 Q194116
SYSTEM
Delmarva Shorebirds, Detroit Red Wings
Q5254272 Q194116
OR((c(Q12973014),P115,Q1201545), (c(Q12973014),P115,Q4800566))
action filter_type
action union
action find_reverse
entity Q1201545
relation P115
action find_reverse
entity Q4800566
relation P115
type Q12973014
And [ANSWERS] have Detroit Olympia or Arthur W. Perdue Stadium as their ground
{'OR': [[{'concept': 'Q12973014'}, 'P115', 'Q1201545'], [{'concept': 'Q12973014'}, 'P115', 'Q4800566']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12973014 . { { ?h property:P115 resource:Q1201545 } UNION { ?h property:P115 resource:Q4800566 } } }
Delmarva Shorebirds Detroit Red Wings
And Delmarva Shorebirds and Detroit Red Wings have Detroit Olympia or Arthur W. Perdue Stadium as their ground
Delmarva Shorebirds Detroit Red Wings
action filter_type
action union
action find_reverse
entity Detroit Olympia
relation home venue
action find_reverse
entity Arthur W. Perdue Stadium
relation home venue
type sports team
{'OR': [[{'concept': 'sports team'}, 'home venue', 'Detroit Olympia'], [{'concept': 'sports team'}, 'home venue', 'Arthur W. Perdue Stadium']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sports_team . { { ?h property:home_venue resource:Detroit_Olympia } UNION { ?h property:home_venue resource:Arthur_W._Perdue_Stadium } } }
[]