Simple Question (Direct)
Simple Question
Q286253
P21
Q290
USER
Which sex does Émile Mâle have ?
(Q286253,P21,c(Q290))
action filter_type
action find
entity Q286253
relation P21
type Q290
['Q286253', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q286253 property:P21 ?o . ?o rdf:type ontology:Q290 }
Émile Mâle
action filter_type
action find
entity Émile Mâle
relation gender
type sex
['Émile Mâle', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Émile_Mâle property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q286253,P21,c(Q290))
action filter_type
action find
entity Q286253
relation P21
type Q290
Émile Mâle has a [ANSWER]
['Q286253', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q286253 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
Émile Mâle has a male
male
action filter_type
action find
entity Émile Mâle
relation gender
type sex
['Émile Mâle', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Émile_Mâle property:gender ?o . ?o rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q286253
P138
Q811979
USER
Which architectural structure is named after that person ?
(c(Q811979),P138,Q6581097)
action filter_type
action find_reverse
entity Q286253
relation P138
type Q811979
[{'concept': 'Q811979'}, 'P138', 'Q6581097']
SELECT DISTINCT ?n WHERE { ?n property:P138 resource:Q286253 . ?n rdf:type ontology:Q811979 }
Émile Mâle
action filter_type
action find_reverse
entity Émile Mâle
relation named after
type architectural structure
[{'concept': 'architectural structure'}, 'named after', 'male']
SELECT DISTINCT ?n WHERE { ?n property:named_after resource:Émile_Mâle . ?n rdf:type ontology:architectural_structure }
[]
architectural structure
Q3390741
SYSTEM
place Émile-Mâle
Q3390741
(c(Q811979),P138,Q6581097)
action filter_type
action find_reverse
entity Q286253
relation P138
type Q811979
[ANSWER] is named after that person
[{'concept': 'Q811979'}, 'P138', 'Q6581097']
SELECT DISTINCT ?n WHERE { ?n property:P138 resource:Q286253 . ?n rdf:type ontology:Q811979 }
place Émile-Mâle
Place Émile-Mâle is named after that person
place Émile-Mâle
action filter_type
action find_reverse
entity Émile Mâle
relation named after
type architectural structure
[{'concept': 'architectural structure'}, 'named after', 'male']
SELECT DISTINCT ?n WHERE { ?n property:named_after resource:Émile_Mâle . ?n rdf:type ontology:architectural_structure }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q3390741 Q3450927
P47
Q34442
USER
Does that architectural structure share a border with rue de Navarre ?
(Q3450927,P47,Q3390741)
action is_in
entity Q3450927
action find
entity Q3390741
relation P47
['Q3450927', 'P47', 'Q3390741']
ASK WHERE { resource:Q3390741 property:P47 resource:Q3450927 }
place Émile-Mâle rue de Navarre
action is_in
entity rue de Navarre
action find
entity place Émile-Mâle
relation shares border with
['rue de Navarre', 'shares border with', 'place Émile-Mâle']
ASK WHERE { resource:place_Émile-Mâle property:shares_border_with resource:rue_de_Navarre }
[]
road
SYSTEM
YES
(Q3450927,P47,Q3390741)
action is_in
entity Q3450927
action find
entity Q3390741
relation P47
[ANSWER]
['Q3450927', 'P47', 'Q3390741']
ASK WHERE { resource:Q3390741 property:P47 resource:Q3450927 }
Yes
action is_in
entity rue de Navarre
action find
entity place Émile-Mâle
relation shares border with
['rue de Navarre', 'shares border with', 'place Émile-Mâle']
ASK WHERE { resource:place_Émile-Mâle property:shares_border_with resource:rue_de_Navarre }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q2921989
P47
Q34442
USER
How many roads do boulevard de Ménilmontant share a border with ?
(c(Q34442),P47,Q2921989)
action count
action filter_type
action find_reverse
entity Q2921989
relation P47
type Q34442
[{'concept': 'Q34442'}, 'P47', 'Q2921989']
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { ?b property:P47 resource:Q2921989 . ?b rdf:type ontology:Q34442 }
boulevard de Ménilmontant
action count
action filter_type
action find_reverse
entity boulevard de Ménilmontant
relation shares border with
type road
[{'concept': 'road'}, 'shares border with', 'boulevard de Ménilmontant']
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { ?b property:shares_border_with resource:boulevard_de_Ménilmontant . ?b rdf:type ontology:road }
[]
road
SYSTEM
14
Q3452168 Q3450890 Q3451946 Q3451931 Q3451088 Q3451680 Q3562158 Q3452562 Q3451731 Q2974746 Q3451555 Q3450081 Q3450919 Q2373366
(c(Q34442),P47,Q2921989)
action count
action filter_type
action find_reverse
entity Q2921989
relation P47
type Q34442
[ANSWER]
[{'concept': 'Q34442'}, 'P47', 'Q2921989']
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { ?b property:P47 resource:Q2921989 . ?b rdf:type ontology:Q34442 }
rue du Chemin-Vert rue de Mont-Louis rue des Panoyaux rue des Nanettes rue de Tlemcen rue des Bluets voie A/11 rue du Repos rue des Cendriers cité de l'Avenir rue de la Roquette rue Spinoza rue de Ménilmontant rue Oberkampf
14
action count
action filter_type
action find_reverse
entity boulevard de Ménilmontant
relation shares border with
type road
[{'concept': 'road'}, 'shares border with', 'boulevard de Ménilmontant']
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { ?b property:shares_border_with resource:boulevard_de_Ménilmontant . ?b rdf:type ontology:road }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q286253 Q3253281
P138
Q34442
USER
How many roads are the eponym of Émile Mâle or pond ?
(c(Q34442),P138,Q286253) (c(Q34442),P138,Q3253281)
action count
action union
action filter_type
action find_reverse
entity Q286253
relation P138
type Q34442
action filter_type
action find_reverse
entity Q3253281
relation P138
type Q34442
[{'concept': 'Q34442'}, 'P138', 'Q286253'] [{'concept': 'Q34442'}, 'P138', 'Q3253281']
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { ?m property:P138 resource:Q286253 . ?m rdf:type ontology:Q34442 } UNION { ?m property:P138 resource:Q3253281 . ?m rdf:type ontology:Q34442 } }
Émile Mâle pond
action count
action union
action filter_type
action find_reverse
entity Émile Mâle
relation named after
type road
action filter_type
action find_reverse
entity pond
relation named after
type road
[{'concept': 'road'}, 'named after', 'Émile Mâle'] [{'concept': 'road'}, 'named after', 'pond']
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { ?m property:named_after resource:Émile_Mâle . ?m rdf:type ontology:road } UNION { ?m property:named_after resource:pond . ?m rdf:type ontology:road } }
[]
road
SYSTEM
3
Q15801677 Q19634593 Q3451479
(c(Q34442),P138,Q286253) (c(Q34442),P138,Q3253281)
action count
action union
action filter_type
action find_reverse
entity Q286253
relation P138
type Q34442
action filter_type
action find_reverse
entity Q3253281
relation P138
type Q34442
[ANSWER]
[{'concept': 'Q34442'}, 'P138', 'Q286253'] [{'concept': 'Q34442'}, 'P138', 'Q3253281']
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { ?m property:P138 resource:Q286253 . ?m rdf:type ontology:Q34442 } UNION { ?m property:P138 resource:Q3253281 . ?m rdf:type ontology:Q34442 } }
Igeldammsgatan Vijverhof rue de la Mare
3
action count
action union
action filter_type
action find_reverse
entity Émile Mâle
relation named after
type road
action filter_type
action find_reverse
entity pond
relation named after
type road
[{'concept': 'road'}, 'named after', 'Émile Mâle'] [{'concept': 'road'}, 'named after', 'pond']
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { ?m property:named_after resource:Émile_Mâle . ?m rdf:type ontology:road } UNION { ?m property:named_after resource:pond . ?m rdf:type ontology:road } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P137
Q740752 Q811979
USER
Which transport companies operate min number of architectural structures ?
(c(Q811979),P137,Q617732)
action argmin
action find_reverse_tuple_counts
relation P137
type Q740752
type Q811979
[{'concept': 'Q811979'}, 'P137', 'Q617732']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?i ) { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:P137 ?r . ?r rdf:type ontology:Q740752 . ?u rdf:type ontology:Q811979 } GROUP BY ?r } } . FILTER ( ?y = ?i ) . { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:P137 ?z . ?z rdf:type ontology:Q740752 . ?o rdf:type ontology:Q811979 } GROUP BY ?z } }
action argmin
action find_reverse_tuple_counts
relation operator
type transport company
type architectural structure
[{'concept': 'architectural structure'}, 'operator', 'Montreux-Oberland Bernois']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?i ) { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:operator ?r . ?r rdf:type ontology:transport_company . ?u rdf:type ontology:architectural_structure } GROUP BY ?r } } . FILTER ( ?y = ?i ) . { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:operator ?z . ?z rdf:type ontology:transport_company . ?o rdf:type ontology:architectural_structure } GROUP BY ?z } }
[]
transport company architectural structure
Q18853 Q9322 Q1188230
SYSTEM
DB Regio, Deutsche Bahn, Nankai Electric Railway
Q696056 Q379439 Q6955265 Q466985 Q16951036 Q30850 Q259805 Q11986946 Q13646 Q7596862 Q5314720 Q5531719 Q9322 Q558087 Q2045550 Q5093778 Q822867 Q1502902 Q2304446 Q13882327 Q23239 Q83543 Q498930 Q633760 Q502125 Q1188230 Q20986912 Q1486303 Q3878567 Q629139 Q1201734 Q841227 Q21501365 Q3240991 Q741266 Q4698983 Q524255 Q2245513 Q1332242 Q494088 Q787383 Q19768352 Q13709959 Q833903 Q499071 Q190208 Q291464 Q498366 Q11408721 Q1332019 Q935025 Q652374 Q624798 Q1937120 Q7975717 Q5283358 Q3630199 Q1324935 Q181811 Q247358 Q3138970 Q7880037 Q4154231 Q791050 Q1778084 Q4923279 Q375044 Q1416687 Q1719876 Q177598 Q1662654 Q1140781 Q381636 Q5599675 Q1428642 Q1571428 Q19960466 Q6747270 Q665793 Q591484 Q7283888 Q1190669 Q1332506 Q867040 Q1263077 Q1121154 Q929872 Q5413836 Q7684354 Q1531085 Q4698894 Q7984828 Q83823 Q1433158 Q10682200 Q869251 Q2172775 Q690220 Q1868882 Q1069105 Q1631623 Q452140 Q10390136 Q682894 Q1322206 Q1321914 Q4940244 Q83584 Q1188274 Q1967598 Q1652183 Q7684105 Q604174 Q1398696 Q473058 Q10431339 Q18169 Q913248 Q20640459 Q15712205 Q4202182 Q795363 Q8301325 Q83538 Q843251 Q893983 Q1277719 Q10689331 Q933681 Q2105117 Q20060811 Q1244599 Q658126 Q258856 Q23076 Q845951 Q7056819 Q2453128 Q7603486 Q483883 Q4916856 Q589575 Q4121167 Q1674254 Q5350084 Q3115986 Q8046688 Q246824 Q923337 Q18853 Q6921923 Q643578 Q1775875 Q617732
(c(Q811979),P137,Q617732)
action argmin
action find_reverse_tuple_counts
relation P137
type Q740752
type Q811979
[ANSWERS] operate min number of architectural structures
[{'concept': 'Q811979'}, 'P137', 'Q617732']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?i ) { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:P137 ?r . ?r rdf:type ontology:Q740752 . ?u rdf:type ontology:Q811979 } GROUP BY ?r } } . FILTER ( ?y = ?i ) . { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:P137 ?z . ?z rdf:type ontology:Q740752 . ?o rdf:type ontology:Q811979 } GROUP BY ?z } }
Hamburg America Line Queensland Rail NSB Gjøvikbanen Thalys Belgian State Railways Meitetsu Bayerische Oberlandbahn Norwegian Civil Aviation Administration SNCF Stagecoach Sheffield Dundalk, Newry and Greenore Railway General Authority of Civil Aviation Deutsche Bahn Ann Arbor Railroad Pacific Mail Steamship Company Chester and Holyhead Railway Hamburg-Köln-Express Underground Electric Railways Company of London South Eastern and Chatham Railway Nederlandsche Rhijnspoorweg-Maatschappij Amtrak Seibu Railway Hokkaido Railway Company Conrail West Japan Railway Company Nankai Electric Railway DB Busverkehr Hessen London and North Western Railway Northern Counties Committee London, Midland and Scottish Railway Deutsch-Australische Dampfschiffs-Gesellschaft Metropolitan Intercity Railway Company Railway Touring Company Lima Airport Partners Southern Railway Airports Company South Africa NMBS/SNCB Sanyo Electric Railway Tokyu Corporation Shinbundang Railroad Company North Eastern Railway Joseph Constantine Steamship Neo Trans Stena Line East Japan Railway Company Zentralbahn Aena Kyushu Railway Company Minamiaso tetsudō Ellerman Lines Metropolitan Railway Norddeutscher Lloyd Canadian National Railway NI Railways Waxholmsbolaget District Railway Airports Authority of India Trenord Great Northern Railway Appenzeller Bahnen (2006) Iyo Railway Ulster Transport Authority Far East Shipping Company Avinor Mitsui O.S.K. Lines Blackpool Transport Stockton and Darlington Railway Finavia Stern und Kreisschiffahrt Rhaetian Railway Infraero Hanshin Electric Railway Aeroporti di Roma SpA Great Northern Railway (Ireland) Penn Central Transportation Company Swedavia Finnish State Railways Manchester Airports Group Maatschappij tot Exploitatie van Staatsspoorwegen Connexxion Rail Corporation New South Wales Japan Freight Railway Company Keio Corporation Aizu Railway Dublin Airport Authority Compagnie des chemins de fer de Paris à Lyon et à la Méditerranée Royal Caribbean International Eurostar International Limited Taoyuan International Airport Corporation Kintetsu Airport Authority Hong Kong West Coast Railway Company Ferrovie dello Stato Italiane Helsinki City Transport Strömma Kanalbolaget Nishi-Nippon Railroad Nederlandsche Centraal-Spoorweg-Maatschappij Grand Junction Railway London, Tilbury and Southend Railway Kazakhstan Temir Zholy TAV Airports Holding DB Fernverkehr Viação Férrea Federal Leste Brasileiro Tokyo Metro Keikyu Tobu Railway Bolton and Leigh Railway Odakyu Electric Railway Keihan Electric Railway National Railways of Zimbabwe In-der-City-Bus Tanzania Airports Authority Hakone Tozan Railway Liverpool and Manchester Railway Hankyu Corporation Blidösundsbolaget Korail VR Group Lokaltog intercity bus company Malaysia Airports Heathrow Airport Holdings Limited SJ AB Keisei Electric Railway Great Western Railway BornholmerFærgen East African Railways and Harbours Corporation TBI plc Flughafen Berlin Brandenburg GmbH Hollandsche IJzeren Spoorweg-Maatschappij Rede Ferroviária do Nordeste Nizam's Guaranteed State Railway Syrian Railways Angkasa Pura Nederlandse Spoorwegen Sagami Railway North Staffordshire Railway Karelian Trains State Rail Authority of New South Wales Incheon Transit Corporation Birmingham and Gloucester Railway Eurobahn Sydney Airports Corporation Isle of Man Steam Packet Company Eizan Electric Railway Great Western Steamship Company Yagan Railway BLS AG Ukrainian Railways DB Regio Mount Lyell Mining and Railway Company Fraport Overseas Shipholding Group Montreux-Oberland Bernois
DB Regio, Deutsche Bahn and Nankai Electric Railway operate min number of architectural structures
DB Regio Deutsche Bahn Nankai Electric Railway
action argmin
action find_reverse_tuple_counts
relation operator
type transport company
type architectural structure
[{'concept': 'architectural structure'}, 'operator', 'Montreux-Oberland Bernois']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?i ) { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:operator ?r . ?r rdf:type ontology:transport_company . ?u rdf:type ontology:architectural_structure } GROUP BY ?r } } . FILTER ( ?y = ?i ) . { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:operator ?z . ?z rdf:type ontology:transport_company . ?o rdf:type ontology:architectural_structure } GROUP BY ?z } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P355
Q740752 Q43229
USER
How many transport companies and organizations are that transport company the parent company of ?
(Q1188230,P355,c(Q740752)) (Q1188230,P355,c(Q43229)) (Q18853,P355,c(Q740752)) (Q18853,P355,c(Q43229)) (Q9322,P355,c(Q740752)) (Q9322,P355,c(Q43229)) (Q1188230,P355,c(Q740752)) (Q1188230,P355,c(Q43229))
['Q1188230', 'P355', {'concept': 'Q740752'}] ['Q1188230', 'P355', {'concept': 'Q43229'}] ['Q18853', 'P355', {'concept': 'Q740752'}] ['Q18853', 'P355', {'concept': 'Q43229'}] ['Q9322', 'P355', {'concept': 'Q740752'}] ['Q9322', 'P355', {'concept': 'Q43229'}] ['Q1188230', 'P355', {'concept': 'Q740752'}] ['Q1188230', 'P355', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q1188230 property:P355 ?z } UNION { resource:Q1188230 property:P355 ?y } UNION { resource:Q18853 property:P355 ?z } UNION { resource:Q18853 property:P355 ?y } UNION { resource:Q9322 property:P355 ?z } UNION { resource:Q9322 property:P355 ?y } UNION { resource:Q1188230 property:P355 ?z } UNION { resource:Q1188230 property:P355 ?y } } . ?z rdf:type ontology:Q740752 . ?y rdf:type ontology:Q43229 }
['Nankai Electric Railway', 'subsidiary', {'concept': 'transport company'}] ['Nankai Electric Railway', 'subsidiary', {'concept': 'organization'}] ['DB Regio', 'subsidiary', {'concept': 'transport company'}] ['DB Regio', 'subsidiary', {'concept': 'organization'}] ['Deutsche Bahn', 'subsidiary', {'concept': 'transport company'}] ['Deutsche Bahn', 'subsidiary', {'concept': 'organization'}] ['Nankai Electric Railway', 'subsidiary', {'concept': 'transport company'}] ['Nankai Electric Railway', 'subsidiary', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Nankai_Electric_Railway property:subsidiary ?z } UNION { resource:Nankai_Electric_Railway property:subsidiary ?y } UNION { resource:DB_Regio property:subsidiary ?z } UNION { resource:DB_Regio property:subsidiary ?y } UNION { resource:Deutsche_Bahn property:subsidiary ?z } UNION { resource:Deutsche_Bahn property:subsidiary ?y } UNION { resource:Nankai_Electric_Railway property:subsidiary ?z } UNION { resource:Nankai_Electric_Railway property:subsidiary ?y } } . ?z rdf:type ontology:transport_company . ?y rdf:type ontology:organization }
[]
transport company organization
Quantitative|Count|Mult. entity type|Clarification
Q9322
SYSTEM
Did you mean Deutsche Bahn ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q1188230 property:P355 ?z } UNION { resource:Q1188230 property:P355 ?y } UNION { resource:Q18853 property:P355 ?z } UNION { resource:Q18853 property:P355 ?y } UNION { resource:Q9322 property:P355 ?z } UNION { resource:Q9322 property:P355 ?y } UNION { resource:Q1188230 property:P355 ?z } UNION { resource:Q1188230 property:P355 ?y } } . ?z rdf:type ontology:Q740752 . ?y rdf:type ontology:Q43229 }
Did you mean Deutsche Bahn ?
Deutsche Bahn
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Nankai_Electric_Railway property:subsidiary ?z } UNION { resource:Nankai_Electric_Railway property:subsidiary ?y } UNION { resource:DB_Regio property:subsidiary ?z } UNION { resource:DB_Regio property:subsidiary ?y } UNION { resource:Deutsche_Bahn property:subsidiary ?z } UNION { resource:Deutsche_Bahn property:subsidiary ?y } UNION { resource:Nankai_Electric_Railway property:subsidiary ?z } UNION { resource:Nankai_Electric_Railway property:subsidiary ?y } } . ?z rdf:type ontology:transport_company . ?y rdf:type ontology:organization }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Nankai Electric Railway. Could you tell me the answer for that?
(Q1188230,P355,c(Q740752)) (Q1188230,P355,c(Q43229)) (Q18853,P355,c(Q740752)) (Q18853,P355,c(Q43229)) (Q9322,P355,c(Q740752)) (Q9322,P355,c(Q43229)) (Q1188230,P355,c(Q740752)) (Q1188230,P355,c(Q43229))
Q1188230
['Q1188230', 'P355', {'concept': 'Q740752'}] ['Q1188230', 'P355', {'concept': 'Q43229'}] ['Q18853', 'P355', {'concept': 'Q740752'}] ['Q18853', 'P355', {'concept': 'Q43229'}] ['Q9322', 'P355', {'concept': 'Q740752'}] ['Q9322', 'P355', {'concept': 'Q43229'}] ['Q1188230', 'P355', {'concept': 'Q740752'}] ['Q1188230', 'P355', {'concept': 'Q43229'}]
['Nankai Electric Railway', 'subsidiary', {'concept': 'transport company'}] ['Nankai Electric Railway', 'subsidiary', {'concept': 'organization'}] ['DB Regio', 'subsidiary', {'concept': 'transport company'}] ['DB Regio', 'subsidiary', {'concept': 'organization'}] ['Deutsche Bahn', 'subsidiary', {'concept': 'transport company'}] ['Deutsche Bahn', 'subsidiary', {'concept': 'organization'}] ['Nankai Electric Railway', 'subsidiary', {'concept': 'transport company'}] ['Nankai Electric Railway', 'subsidiary', {'concept': 'organization'}]
[]
SYSTEM
1 transport companies and 4 organizations
Q11489648 Q7105599 Q11656367 Q11408197 Q11417290
(Q1188230,P355,c(Q740752)) (Q1188230,P355,c(Q43229)) (Q18853,P355,c(Q740752)) (Q18853,P355,c(Q43229)) (Q9322,P355,c(Q740752)) (Q9322,P355,c(Q43229)) (Q1188230,P355,c(Q740752)) (Q1188230,P355,c(Q43229))
[ANSWER]
['Q1188230', 'P355', {'concept': 'Q740752'}] ['Q1188230', 'P355', {'concept': 'Q43229'}] ['Q18853', 'P355', {'concept': 'Q740752'}] ['Q18853', 'P355', {'concept': 'Q43229'}] ['Q9322', 'P355', {'concept': 'Q740752'}] ['Q9322', 'P355', {'concept': 'Q43229'}] ['Q1188230', 'P355', {'concept': 'Q740752'}] ['Q1188230', 'P355', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q1188230 property:P355 ?z } UNION { resource:Q1188230 property:P355 ?y } UNION { resource:Q18853 property:P355 ?z } UNION { resource:Q18853 property:P355 ?y } UNION { resource:Q9322 property:P355 ?z } UNION { resource:Q9322 property:P355 ?y } UNION { resource:Q1188230 property:P355 ?z } UNION { resource:Q1188230 property:P355 ?y } } . ?z rdf:type ontology:Q740752 . ?y rdf:type ontology:Q43229 }
Tokushima Bus Semboku Rapid Railway Kansai Airport Transportation Enterprise Nankai Tatsumura Construction Wakayama Bus
1 transport companies and 4 organizations
['Nankai Electric Railway', 'subsidiary', {'concept': 'transport company'}] ['Nankai Electric Railway', 'subsidiary', {'concept': 'organization'}] ['DB Regio', 'subsidiary', {'concept': 'transport company'}] ['DB Regio', 'subsidiary', {'concept': 'organization'}] ['Deutsche Bahn', 'subsidiary', {'concept': 'transport company'}] ['Deutsche Bahn', 'subsidiary', {'concept': 'organization'}] ['Nankai Electric Railway', 'subsidiary', {'concept': 'transport company'}] ['Nankai Electric Railway', 'subsidiary', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Nankai_Electric_Railway property:subsidiary ?z } UNION { resource:Nankai_Electric_Railway property:subsidiary ?y } UNION { resource:DB_Regio property:subsidiary ?z } UNION { resource:DB_Regio property:subsidiary ?y } UNION { resource:Deutsche_Bahn property:subsidiary ?z } UNION { resource:Deutsche_Bahn property:subsidiary ?y } UNION { resource:Nankai_Electric_Railway property:subsidiary ?z } UNION { resource:Nankai_Electric_Railway property:subsidiary ?y } } . ?z rdf:type ontology:transport_company . ?y rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9322
P98
Q1002697
USER
What was edited by Deutsche Bahn ?
(c(Q1002697),P98,Q9322)
action filter_type
action find_reverse
entity Q9322
relation P98
type Q1002697
[{'concept': 'Q1002697'}, 'P98', 'Q9322']
SELECT DISTINCT ?k WHERE { ?k property:P98 resource:Q9322 . ?k rdf:type ontology:Q1002697 }
Deutsche Bahn
action filter_type
action find_reverse
entity Deutsche Bahn
relation editor
type periodical literature
[{'concept': 'periodical literature'}, 'editor', 'Deutsche Bahn']
SELECT DISTINCT ?k WHERE { ?k property:editor resource:Deutsche_Bahn . ?k rdf:type ontology:periodical_literature }
[]
periodical literature
Q24025290
SYSTEM
DB mobil
Q24025290
(c(Q1002697),P98,Q9322)
action filter_type
action find_reverse
entity Q9322
relation P98
type Q1002697
[ANSWER] was edited by Deutsche Bahn
[{'concept': 'Q1002697'}, 'P98', 'Q9322']
SELECT DISTINCT ?k WHERE { ?k property:P98 resource:Q9322 . ?k rdf:type ontology:Q1002697 }
DB mobil
DB mobil was edited by Deutsche Bahn
DB mobil
action filter_type
action find_reverse
entity Deutsche Bahn
relation editor
type periodical literature
[{'concept': 'periodical literature'}, 'editor', 'Deutsche Bahn']
SELECT DISTINCT ?k WHERE { ?k property:editor resource:Deutsche_Bahn . ?k rdf:type ontology:periodical_literature }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q9322 Q17351730
P17
Q15617994
USER
How many administrative territories are Deutsche Bahn or Comoros–Seychelles border present in ?
(Q9322,P17,c(Q15617994)) (Q17351730,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q9322
relation P17
type Q15617994
action filter_type
action find
entity Q17351730
relation P17
type Q15617994
['Q9322', 'P17', {'concept': 'Q15617994'}] ['Q17351730', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) WHERE { ?l property:P17 ?u . VALUES ( ?l ) { ( resource:Q9322 ) ( resource:Q17351730 ) } }
Deutsche Bahn Comoros–Seychelles border
action count
action union
action filter_type
action find
entity Deutsche Bahn
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Comoros–Seychelles border
relation country
type designation for an administrative territorial entity
['Deutsche Bahn', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Comoros–Seychelles border', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) WHERE { ?l property:country ?u . VALUES ( ?l ) { ( resource:Deutsche_Bahn ) ( resource:Comoros–Seychelles_border ) } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q1042 Q970
(Q9322,P17,c(Q15617994)) (Q17351730,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q9322
relation P17
type Q15617994
action filter_type
action find
entity Q17351730
relation P17
type Q15617994
[ANSWER]
['Q9322', 'P17', {'concept': 'Q15617994'}] ['Q17351730', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) WHERE { ?l property:P17 ?u . VALUES ( ?l ) { ( resource:Q9322 ) ( resource:Q17351730 ) } }
Seychelles Comoros
2
action count
action union
action filter_type
action find
entity Deutsche Bahn
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Comoros–Seychelles border
relation country
type designation for an administrative territorial entity
['Deutsche Bahn', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Comoros–Seychelles border', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) WHERE { ?l property:country ?u . VALUES ( ?l ) { ( resource:Deutsche_Bahn ) ( resource:Comoros–Seychelles_border ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q3992
P291
Q56061 Q1002697
USER
Which administrative territories were less number of periodical literatures published than Liège ?
(c(Q1002697),P291,c(Q56061))
action less
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
action count
action filter_type
action find_reverse
entity Q3992
relation P291
type Q1002697
[{'concept': 'Q1002697'}, 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?f property:P291 resource:Q3992 . ?f rdf:type ontology:Q1002697 } } . FILTER ( ?e < ?j ) . { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:P291 ?b . ?b rdf:type ontology:Q56061 . ?k rdf:type ontology:Q1002697 } GROUP BY ?b } }
Liège
action less
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
action count
action filter_type
action find_reverse
entity Liège
relation place of publication
type periodical literature
[{'concept': 'periodical literature'}, 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?f property:place_of_publication resource:Liège . ?f rdf:type ontology:periodical_literature } } . FILTER ( ?e < ?j ) . { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:place_of_publication ?b . ?b rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:periodical_literature } GROUP BY ?b } }
[]
administrative territorial entity periodical literature
Q72 Q8678 Q216
SYSTEM
Zürich, Rio de Janeiro, Vilnius
Q807 Q909146 Q2536016 Q2512312 Q190583 Q27918 Q736775 Q2035368 Q3897 Q3711 Q130191 Q393 Q80670 Q25286 Q490595 Q3808 Q501661 Q982367 Q3150 Q484678 Q151920 Q13375 Q36378 Q4093 Q2560090 Q3404679 Q23337 Q33959 Q987 Q23051 Q586 Q1289 Q10690 Q25748 Q9920 Q15688 Q12155 Q323801 Q15684 Q170497 Q41876 Q1754 Q749 Q39561 Q2132 Q1930 Q3846 Q81046 Q597 Q22889 Q12892 Q365 Q6157 Q1718 Q43631 Q428829 Q1335 Q1895 Q1034159 Q1155 Q103717 Q28911 Q3400328 Q186237 Q180233 Q14328 Q5083 Q1524 Q209055 Q2020203 Q3561 Q40347 Q406 Q234178 Q739452 Q8678 Q15468 Q6346 Q887 Q5465 Q2141 Q1679567 Q2814 Q2280 Q3141 Q671288 Q72 Q1490 Q1191195 Q102217 Q237 Q334 Q16554 Q16555 Q16557 Q621 Q994 Q1513 Q192517 Q1296 Q1297 Q3033 Q936183 Q170263 Q35381 Q1748 Q87 Q40269 Q2081145 Q1024911 Q193478 Q5112 Q2103 Q1741 Q178093 Q191133 Q11959 Q35493 Q538915 Q78 Q49111 Q2617448 Q37100 Q38022 Q36405 Q270 Q286048 Q1235510 Q1931927 Q49241 Q172157 Q33935 Q16567 Q134620 Q437 Q13580 Q18419 Q2090 Q49145 Q42735 Q242478 Q327022 Q23154 Q340 Q26421 Q429676 Q672545 Q634054 Q37995 Q6761 Q28249 Q13666 Q761 Q569661 Q2634 Q3584 Q49179 Q735583 Q1724 Q1729 Q3519 Q65 Q2028 Q62 Q3395358 Q683512 Q18125 Q3889 Q9125 Q1867 Q12439 Q269 Q470445 Q126148 Q1352 Q771986 Q49229 Q33405 Q8385 Q493794 Q6106 Q2391194 Q72259 Q1295 Q19785 Q647 Q727 Q669171 Q206988 Q3012 Q24826 Q15695 Q28848 Q128306 Q15088 Q997170 Q203263 Q580 Q193180 Q585 Q34370 Q47048 Q178277 Q192155 Q883 Q207639 Q41262 Q2066 Q100 Q156990 Q3834 Q81137 Q955640 Q281839 Q485172 Q487786 Q172 Q216 Q350 Q720627 Q13972 Q129610 Q179385 Q1348 Q29303 Q628667 Q127159
(c(Q1002697),P291,c(Q56061))
action less
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
action count
action filter_type
action find_reverse
entity Q3992
relation P291
type Q1002697
[ANSWERS] were less number of periodical literatures published than Liège
[{'concept': 'Q1002697'}, 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?f property:P291 resource:Q3992 . ?f rdf:type ontology:Q1002697 } } . FILTER ( ?e < ?j ) . { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:P291 ?b . ?b rdf:type ontology:Q56061 . ?k rdf:type ontology:Q1002697 } GROUP BY ?b } }
Lausanne Godalming Crickhowell Eppegem Mikkeli Bad Rappenau Toronto Tremadog Luanda Belgrade Norwich Szczecin Mühlacker Uppsala Daytona Beach Yaoundé Schleswig Mineola Jena Berkeley Tiberias Pisa Fribourg Glasgow Athol Crumlin Salt Lake City Nice New Delhi Swansea Bonn Grenoble Cardiff Gävle Haarlem Ávila Soria Nampula Segovia Gloucester Reims Stockholm Groningen Burbank Victoria Ottawa Minden Charleroi Lisbon Bath Antwerp Cologne Seinäjoki Düsseldorf Leiden Caernarfon Montevideo Petrozavodsk Harstad Busto Arsizio Rovaniemi Lahti St Athan Joensuu Pori Santa Cruz de Tenerife Seattle Athens Torquay Rhyl Algiers Norman Istanbul Bangor Garden City Rio de Janeiro Badalona Indianapolis Yekaterinburg Cape Town Halifax Jakobstad Halle (Saale) Minsk Melbourne Bend Zürich Tokyo Mold Vitebsk Vatican City Singapore Denver Houston Dallas Versailles Tbilisi Nagpur Boulder Ghent Chicago Göttingen Tonbridge Chester Colombo Copenhagen Alexandria Porto Alegre Milborne Port Welshpool Buda Adelaide Bochum Vienna Poughkeepsie Fátima Alicante Almaty Mjölby Basel Cambridge Edinburgh Auckland St. Louis Aberdeen Warsaw New Glasgow, Nova Scotia Dolgellau Bracon Ash Lexington Winchester Tel Aviv Columbus Jyväskylä Ljubljana Metro Manila Brooklyn Nuremberg New Haven Olympia Levoča Rockville Bristol Montreal Dordrecht Sereď Barmouth Conwy Yangon Livorno Concord Messina Białystok Königstein im Taunus Naples Nový Jičín Worcester Ylivieska Saarbrücken Erfurt Bari Los Angeles Verona San Francisco Kidwelly Savonlinna Manchester Maputo Winterthur Taipei Detroit Tashkent Prostějov Tangier Chennai Chepstow Durham Little Rock Ostrava Dubuque Portland Saint-Idesbald Portsmouth Dortmund Harpenden Rennes Amsterdam Newtown Cheltenham Ulm Liverpool Salamanca Saint Paul Denton Tarragona Waterville Athens Łódź Kajaani Oslo Rotterdam Oulu Montvale Kotka Novosibirsk Chichester Nottingham Essen Boston Monmouth Konstanz Olomouc Glasgow Englewood Cliffs, New Jersey Ann Arbor Orihuela Toronto Vilnius Cambridge Kanhangad Tartu Galway Greenwich Kolkata Canterbury Spangenberg Bletchley
Zürich, Rio de Janeiro and Vilnius were less number of periodical literatures published than Liège
Zürich Rio de Janeiro Vilnius
action less
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
action count
action filter_type
action find_reverse
entity Liège
relation place of publication
type periodical literature
[{'concept': 'periodical literature'}, 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?f property:place_of_publication resource:Liège . ?f rdf:type ontology:periodical_literature } } . FILTER ( ?e < ?j ) . { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:place_of_publication ?b . ?b rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:periodical_literature } GROUP BY ?b } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q337567 Q15324 Q56061
USER
How many administrative territories are located next to atleast 5 still waterss and bodies of water ?
(c(Q56061),P206,c(Q337567)|c(Q15324))
action count
action atleast
action union
action find_tuple_counts
relation P206
type Q56061
type Q337567
action find_tuple_counts
relation P206
type Q56061
type Q15324
value 5
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { FILTER ( ?w >= 5 ) . { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?w ) WHERE { ?x rdf:type ?a . VALUES ( ?a ) { ( ontology:Q337567 ) ( ontology:Q15324 ) } } GROUP BY ?c } }
action count
action atleast
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
value 5
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { FILTER ( ?w >= 5 ) . { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?w ) WHERE { ?x rdf:type ?a . VALUES ( ?a ) { ( ontology:still_waters ) ( ontology:body_of_water ) } } GROUP BY ?c } }
[]
still waters body of water administrative territorial entity
SYSTEM
1
Q1709
(c(Q56061),P206,c(Q337567)|c(Q15324))
action count
action atleast
action union
action find_tuple_counts
relation P206
type Q56061
type Q337567
action find_tuple_counts
relation P206
type Q56061
type Q15324
value 5
[ANSWER]
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { FILTER ( ?w >= 5 ) . { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?w ) WHERE { ?x rdf:type ?a . VALUES ( ?a ) { ( ontology:Q337567 ) ( ontology:Q15324 ) } } GROUP BY ?c } }
Schwerin
1
action count
action atleast
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
value 5
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { FILTER ( ?w >= 5 ) . { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?w ) WHERE { ?x rdf:type ?a . VALUES ( ?a ) { ( ontology:still_waters ) ( ontology:body_of_water ) } } GROUP BY ?c } }
[]