Simple Question (Direct)
Simple Question
Q3266455
P641
Q349
USER
Which sport was Luigi Glombard a part of ?
(Q3266455,P641,c(Q349))
action filter_type
action find
entity Q3266455
relation P641
type Q349
['Q3266455', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q349 . resource:Q3266455 property:P641 ?h }
Luigi Glombard
action filter_type
action find
entity Luigi Glombard
relation sport
type sport
['Luigi Glombard', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sport . resource:Luigi_Glombard property:sport ?h }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q3266455,P641,c(Q349))
action filter_type
action find
entity Q3266455
relation P641
type Q349
Luigi Glombard was in [ANSWER]
['Q3266455', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q349 . resource:Q3266455 property:P641 ?h }
association football
Luigi Glombard was in association football
association football
action filter_type
action find
entity Luigi Glombard
relation sport
type sport
['Luigi Glombard', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sport . resource:Luigi_Glombard property:sport ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3266455
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Luigi Glombard ?
(Q3266455,P27,c(Q15617994))
action filter_type
action find
entity Q3266455
relation P27
type Q15617994
['Q3266455', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q3266455 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
Luigi Glombard
action filter_type
action find
entity Luigi Glombard
relation country of citizenship
type designation for an administrative territorial entity
['Luigi Glombard', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Luigi_Glombard property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3266455,P27,c(Q15617994))
action filter_type
action find
entity Q3266455
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Luigi Glombard
['Q3266455', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q3266455 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
France
France is the country of citizenship of Luigi Glombard
France
action filter_type
action find
entity Luigi Glombard
relation country of citizenship
type designation for an administrative territorial entity
['Luigi Glombard', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Luigi_Glombard property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q142 Q1343652
P27
Q502895
USER
Is Kaled Gourmi a native of that administrative territory ?
(Q1343652,P27,Q142)
action is_in
entity Q142
action find
entity Q1343652
relation P27
['Q1343652', 'P27', 'Q142']
ASK WHERE { resource:Q1343652 property:P27 resource:Q142 }
France Kaled Gourmi
action is_in
entity France
action find
entity Kaled Gourmi
relation country of citizenship
['Kaled Gourmi', 'country of citizenship', 'France']
ASK WHERE { resource:Kaled_Gourmi property:country_of_citizenship resource:France }
[]
common name
SYSTEM
YES
(Q1343652,P27,Q142)
action is_in
entity Q142
action find
entity Q1343652
relation P27
[ANSWER]
['Q1343652', 'P27', 'Q142']
ASK WHERE { resource:Q1343652 property:P27 resource:Q142 }
Yes
action is_in
entity France
action find
entity Kaled Gourmi
relation country of citizenship
['Kaled Gourmi', 'country of citizenship', 'France']
ASK WHERE { resource:Kaled_Gourmi property:country_of_citizenship resource:France }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3266455
P106
Q12737077
USER
What is the profession of Luigi Glombard ?
(Q3266455,P106,c(Q12737077))
action filter_type
action find
entity Q3266455
relation P106
type Q12737077
['Q3266455', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q3266455 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Luigi Glombard
action filter_type
action find
entity Luigi Glombard
relation occupation
type occupation
['Luigi Glombard', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Luigi_Glombard property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q3266455,P106,c(Q12737077))
action filter_type
action find
entity Q3266455
relation P106
type Q12737077
The profession of Luigi Glombard is an [ANSWER]
['Q3266455', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q3266455 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
association football player
The profession of Luigi Glombard is an association football player
association football player
action filter_type
action find
entity Luigi Glombard
relation occupation
type occupation
['Luigi Glombard', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Luigi_Glombard property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3266455
P19
Q20667921
USER
Which french administrative division was that person born at ?
(Q937857,P19,c(Q20667921))
action filter_type
action find
entity Q3266455
relation P19
type Q20667921
['Q937857', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?f WHERE { resource:Q3266455 property:P19 ?f . ?f rdf:type ontology:Q20667921 }
Luigi Glombard
action filter_type
action find
entity Luigi Glombard
relation place of birth
type type of french administrative division
['association football player', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?f WHERE { resource:Luigi_Glombard property:place_of_birth ?f . ?f rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q193370
SYSTEM
Montreuil
Q193370
(Q937857,P19,c(Q20667921))
action filter_type
action find
entity Q3266455
relation P19
type Q20667921
That person was born in [ANSWER]
['Q937857', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?f WHERE { resource:Q3266455 property:P19 ?f . ?f rdf:type ontology:Q20667921 }
Montreuil
That person was born in Montreuil
Montreuil
action filter_type
action find
entity Luigi Glombard
relation place of birth
type type of french administrative division
['association football player', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?f WHERE { resource:Luigi_Glombard property:place_of_birth ?f . ?f rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1001
Q15617994 Q14660 Q4164871
USER
How many administrative territories apply to jurisdiction of atmost 8 flags and positions ?
(c(Q14660)|c(Q4164871),P1001,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q14660
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q4164871
value 8
[[{'concept': 'Q14660'}, {'concept': 'Q4164871'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?a WHERE { { ?z property:P1001 ?a . ?z rdf:type ontology:Q14660 . ?a rdf:type ontology:Q15617994 } UNION { ?z property:P1001 ?a . ?a rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q4164871 } } GROUP BY ?a } . FILTER ( ?q <= 8 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type position
value 8
[[{'concept': 'flag'}, {'concept': 'position'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?a WHERE { { ?z property:applies_to_jurisdiction ?a . ?z rdf:type ontology:flag . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?z property:applies_to_jurisdiction ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:position } } GROUP BY ?a } . FILTER ( ?q <= 8 ) }
[]
designation for an administrative territorial entity flag position
SYSTEM
263
Q701 Q702 Q804 Q705 Q801 Q707 Q709 Q811 Q706679 Q805 Q2765 Q419 Q668 Q163012 Q414 Q142 Q22273061 Q55 Q2871 Q262 Q148 Q189 Q784 Q31 Q265 Q24764 Q2742 Q842 Q37 Q398 Q874 Q712 Q711 Q710 Q717 Q837 Q213 Q443815 Q50198 Q1028 Q187035 Q252 Q22274206 Q399 Q1462 Q403 Q657 Q258 Q6465 Q1979 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q7688 Q739 Q3097 Q826 Q158893 Q2942 Q822 Q241 Q1965 Q817 Q11340 Q244 Q11343 Q1142326 Q1974 Q1019 Q2899 Q2758 Q1952 Q813 Q218 Q33 Q921 Q4712 Q30 Q924 Q36 Q34 Q928 Q155019 Q39 Q38 Q3389 Q986 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q163966 Q769680 Q3068 Q730 Q1013 Q11323 Q236 Q230 Q1948 Q232 Q233 Q1093 Q238 Q119284 Q20 Q1045 Q3403547 Q1042 Q1041 Q27 Q28 Q2667658 Q1049 Q1025 Q1027 Q783 Q1020 Q2009 Q843 Q2007 Q184 Q1101 Q1029 Q2003 Q736 Q786 Q1904 Q32 Q228 Q3462133 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q1050 Q17 Q1989 Q2838 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q694 Q695 Q115 Q114 Q117 Q754 Q752 Q750 Q212 Q22274534 Q11337 Q211 Q11331 Q217 Q214 Q215 Q12642 Q219 Q154547 Q683 Q242 Q1216 Q12753 Q912 Q2805 Q917 Q916 Q2107 Q1007 Q1006 Q1005 Q833 Q977 Q1951 Q1009 Q1008 Q971 Q970 Q1438 Q34020 Q2380910 Q686 Q836 Q760 Q29 Q574 Q11301 Q2904 Q158095 Q1044 Q79 Q77 Q858 Q878 Q775 Q774 Q948 Q776 Q810 Q770 Q773 Q772 Q1014 Q1016 Q158083 Q1011 Q1243 Q945 Q72449 Q12549 Q22273285 Q678 Q129003 Q800 Q1039 Q672 Q176 Q33788 Q929 Q1267638 Q298 Q329609 Q863 Q2938 Q2023 Q869 Q1231 Q953 Q1237
(c(Q14660)|c(Q4164871),P1001,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q14660
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q4164871
value 8
[ANSWER]
[[{'concept': 'Q14660'}, {'concept': 'Q4164871'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?a WHERE { { ?z property:P1001 ?a . ?z rdf:type ontology:Q14660 . ?a rdf:type ontology:Q15617994 } UNION { ?z property:P1001 ?a . ?a rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q4164871 } } GROUP BY ?a } . FILTER ( ?q <= 8 ) }
North Holland Federated States of Micronesia Panama Zeeland Israel Flevoland Marshall Islands Nicaragua Duchy of Bar Yemen Gelsenkirchen Peru India Pankow Argentina France Duchy of Nemours Netherlands Hagen Algeria People's Republic of China Iceland Dominica Belgium Uzbekistan municipality of the Philippines Münster Oman Lithuania Bahrain Turkmenistan Fiji Mongolia Kiribati Venezuela Nepal Czech Republic Altomünster province of Thailand Morocco Principality of Albania Indonesia Duchy of Mercoeur Armenia Sardinia Serbia Chad South Africa department of France Prince Edward Island Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam raion Colombia Remscheid Maldives Friedrichshain-Kreuzberg Solingen Lebanon Cuba New Brunswick Kuwait Sprockhövel Barbados Wetter (Ruhr) Seine British Columbia Madagascar Mülheim an der Ruhr Mönchengladbach Nova Scotia Kyrgyzstan Romania Finland Brunei Duchy of Burgundy United States of America Tanzania Poland Sweden Philippines Duchy of Lorraine Switzerland Italy Finistère Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Mitte Bornholm Loire-Atlantique Suriname Lesotho Breckerfeld Montenegro Georgia Manitoba Kazakhstan Malta Limburg San Marino Marzahn-Hellersdorf Norway Somalia principality of Phalsbourg and Lixheim Seychelles Senegal Ireland Hungary Shushary, Saint Petersburg Sudan Mauritania Mauritius Honduras Malawi Yukon Pakistan Northwest Territories Belarus North Brabant Mozambique Newfoundland and Labrador Ecuador Dominican Republic Ontario Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Swaziland Japan Saskatchewan Oberhausen Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru South Holland Palau Ethiopia Kenya Ghana Trinidad and Tobago Groningen Bolivia Ukraine Duchy of Elbeuf Herdecke Latvia Gevelsberg Republic of Moldova Slovakia Slovenia Morbihan Bulgaria duchy Samoa Belize Piedmont Seine-et-Marne Mali Krefeld Bhutan Angola Wuppertal Guinea-Bissau Guinea Gambia Malaysia Djibouti Alberta Cameroon Côte d'Ivoire Republic of the Congo Comoros Campania Niue Duchy of Zaslawye Vanuatu Myanmar Saint Lucia Spain East Timor Ennepetal Herne Charlottenburg-Wilmersdorf Sierra Leone Egypt Uruguay Syria United Arab Emirates Gelderland Guatemala Tunisia Utrecht Jordan Friesland Overijssel Drenthe Liberia Libya Spandau Cape Verde Veneto Togo Roccarainola Ille-et-Vilaine Duchy of Guise Tonga French Southern and Antarctic Lands Costa Rica Sao Tomé and Príncipe Tuvalu Quebec New Caledonia Central African Republic Beloostrov Chile Lichtenberg Tajikistan Leverkusen Nunavut Thailand Kosovo Region Zambia Trentino-South Tyrol
263
action count
action atmost
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type position
value 8
[[{'concept': 'flag'}, {'concept': 'position'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?a WHERE { { ?z property:applies_to_jurisdiction ?a . ?z rdf:type ontology:flag . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?z property:applies_to_jurisdiction ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:position } } GROUP BY ?a } . FILTER ( ?q <= 8 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q674613 Q193370
P47
Q20667921
USER
Which french administrative divisions share the border with Montreuil or Larodde ?
OR((Q193370,P47,c(Q20667921)), (Q674613,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q193370
relation P47
action find
entity Q674613
relation P47
type Q20667921
{'OR': [['Q193370', 'P47', {'concept': 'Q20667921'}], ['Q674613', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q193370 property:P47 ?x } UNION { resource:Q674613 property:P47 ?x } } . ?x rdf:type ontology:Q20667921 }
Larodde Montreuil
action filter_type
action union
action find
entity Montreuil
relation shares border with
action find
entity Larodde
relation shares border with
type type of french administrative division
{'OR': [['Montreuil', 'shares border with', {'concept': 'type of french administrative division'}], ['Larodde', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Montreuil property:shares_border_with ?x } UNION { resource:Larodde property:shares_border_with ?x } } . ?x rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q18199435 Q378138 Q1098305 Q275547 Q624320 Q273899 Q685239 Q629041 Q208943 Q193899
SYSTEM
Some of them are Charonne, Confolent-Port-Dieu, Labessette, Rosny-sous-Bois, Monestier-Port-Dieu, Singles, Bagnols, Trémouille-Saint-Loup, Bagnolet, Fontenay-sous-Bois
Q685239 Q624320 Q1098305 Q18102 Q370224 Q275547 Q193819 Q273899 Q18199435 Q372111 Q193899 Q735056 Q629041 Q208943 Q378138
OR((Q193370,P47,c(Q20667921)), (Q674613,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q193370
relation P47
action find
entity Q674613
relation P47
type Q20667921
[ANSWERS] share the border with Montreuil or Larodde
{'OR': [['Q193370', 'P47', {'concept': 'Q20667921'}], ['Q674613', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q193370 property:P47 ?x } UNION { resource:Q674613 property:P47 ?x } } . ?x rdf:type ontology:Q20667921 }
Bagnols Monestier-Port-Dieu Labessette Saint-Mandé Noisy-le-Sec Rosny-sous-Bois Vincennes Singles Charonne Romainville Fontenay-sous-Bois Tauves Trémouille-Saint-Loup Bagnolet Confolent-Port-Dieu
Charonne, Confolent-Port-Dieu, Labessette, Rosny-sous-Bois, Monestier-Port-Dieu, Singles, Bagnols, Trémouille-Saint-Loup, Bagnolet and Fontenay-sous-Bois share the border with Montreuil or Larodde
Charonne Confolent-Port-Dieu Labessette Rosny-sous-Bois Monestier-Port-Dieu Singles Bagnols Trémouille-Saint-Loup Bagnolet Fontenay-sous-Bois
action filter_type
action union
action find
entity Montreuil
relation shares border with
action find
entity Larodde
relation shares border with
type type of french administrative division
{'OR': [['Montreuil', 'shares border with', {'concept': 'type of french administrative division'}], ['Larodde', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Montreuil property:shares_border_with ?x } UNION { resource:Larodde property:shares_border_with ?x } } . ?x rdf:type ontology:type_of_french_administrative_division }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q187284
P1376
Q20667921 Q515
USER
How many cities are center of administration for more number of french administrative divisions than Hurghada ?
(c(Q515),P1376,c(Q20667921))
action count
action greater
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action count
action filter_type
action find
entity Q187284
relation P1376
type Q515
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?x ) WHERE { ?z rdf:type ontology:Q515 . ?q rdf:type ontology:Q20667921 . ?z property:P1376 ?q } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { resource:Q187284 property:P1376 ?y . ?y rdf:type ontology:Q515 } } . FILTER ( ?x > ?k ) }
Hurghada
action count
action greater
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action count
action filter_type
action find
entity Hurghada
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?x ) WHERE { ?z rdf:type ontology:city . ?q rdf:type ontology:type_of_french_administrative_division . ?z property:capital_of ?q } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { resource:Hurghada property:capital_of ?y . ?y rdf:type ontology:city } } . FILTER ( ?x > ?k ) }
[]
type of french administrative division city
SYSTEM
5
Q23482 Q6602 Q6582 Q456 Q7003
(c(Q515),P1376,c(Q20667921))
action count
action greater
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action count
action filter_type
action find
entity Q187284
relation P1376
type Q515
[ANSWER]
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?x ) WHERE { ?z rdf:type ontology:Q515 . ?q rdf:type ontology:Q20667921 . ?z property:P1376 ?q } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { resource:Q187284 property:P1376 ?y . ?y rdf:type ontology:Q515 } } . FILTER ( ?x > ?k ) }
Marseille Strasbourg Carcassonne Lyon Dijon
5
action count
action greater
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action count
action filter_type
action find
entity Hurghada
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?x ) WHERE { ?z rdf:type ontology:city . ?q rdf:type ontology:type_of_french_administrative_division . ?z property:capital_of ?q } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { resource:Hurghada property:capital_of ?y . ?y rdf:type ontology:city } } . FILTER ( ?x > ?k ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P159
Q20667921 Q334453 Q7210356
USER
Which french administrative divisions are the HQ of max number of divisions and political organizations ?
(c(Q334453)|c(Q7210356),P159,c(Q20667921))
action argmax
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q334453
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q7210356
[[{'concept': 'Q334453'}, {'concept': 'Q7210356'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?h ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?w ) WHERE { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:Q334453 ) ( ontology:Q7210356 ) } } GROUP BY ?j } } . { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?x ) WHERE { { ?e property:P159 ?y . ?y rdf:type ontology:Q20667921 . ?e rdf:type ontology:Q7210356 } UNION { ?e property:P159 ?y . ?y rdf:type ontology:Q20667921 . ?e rdf:type ontology:Q334453 } } GROUP BY ?y } . FILTER ( ?x = ?h ) }
action argmax
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type division
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type political organization
[[{'concept': 'division'}, {'concept': 'political organization'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?h ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?w ) WHERE { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:division ) ( ontology:political_organization ) } } GROUP BY ?j } } . { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?x ) WHERE { { ?e property:headquarters_location ?y . ?y rdf:type ontology:type_of_french_administrative_division . ?e rdf:type ontology:political_organization } UNION { ?e property:headquarters_location ?y . ?y rdf:type ontology:type_of_french_administrative_division . ?e rdf:type ontology:division } } GROUP BY ?y } . FILTER ( ?x = ?h ) }
[]
type of french administrative division division political organization
Q9733
SYSTEM
Nouméa
Q9733
(c(Q334453)|c(Q7210356),P159,c(Q20667921))
action argmax
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q334453
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q7210356
[ANSWER] is the HQ of max number of divisions and political organizations
[[{'concept': 'Q334453'}, {'concept': 'Q7210356'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?h ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?w ) WHERE { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:Q334453 ) ( ontology:Q7210356 ) } } GROUP BY ?j } } . { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?x ) WHERE { { ?e property:P159 ?y . ?y rdf:type ontology:Q20667921 . ?e rdf:type ontology:Q7210356 } UNION { ?e property:P159 ?y . ?y rdf:type ontology:Q20667921 . ?e rdf:type ontology:Q334453 } } GROUP BY ?y } . FILTER ( ?x = ?h ) }
Nouméa
Nouméa is the HQ of max number of divisions and political organizations
Nouméa
action argmax
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type division
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type political organization
[[{'concept': 'division'}, {'concept': 'political organization'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?h ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?w ) WHERE { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:division ) ( ontology:political_organization ) } } GROUP BY ?j } } . { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?x ) WHERE { { ?e property:headquarters_location ?y . ?y rdf:type ontology:type_of_french_administrative_division . ?e rdf:type ontology:political_organization } UNION { ?e property:headquarters_location ?y . ?y rdf:type ontology:type_of_french_administrative_division . ?e rdf:type ontology:division } } GROUP BY ?y } . FILTER ( ?x = ?h ) }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q9733 Q663587 Q33959
P190
Q56061
USER
Is Nouméa sister town of Dolnja Bistrica and Nice ?
(Q9733,P190,Q663587) (Q9733,P190,Q33959)
action is_in
entity Q9733
action intersection
action find_reverse
entity Q663587
relation P190
action find_reverse
entity Q33959
relation P190
['Q9733', 'P190', 'Q663587'] ['Q9733', 'P190', 'Q33959']
ASK WHERE { resource:Q9733 property:P190 resource:Q663587 . resource:Q9733 property:P190 resource:Q33959 }
Nouméa Dolnja Bistrica Nice
action is_in
entity Nouméa
action intersection
action find_reverse
entity Dolnja Bistrica
relation sister city
action find_reverse
entity Nice
relation sister city
['Nouméa', 'sister city', 'Dolnja Bistrica'] ['Nouméa', 'sister city', 'Nice']
ASK WHERE { resource:Nouméa property:sister_city resource:Dolnja_Bistrica . resource:Nouméa property:sister_city resource:Nice }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q9733,P190,Q663587) (Q9733,P190,Q33959)
action is_in
entity Q9733
action intersection
action find_reverse
entity Q663587
relation P190
action find_reverse
entity Q33959
relation P190
[ANSWER]
['Q9733', 'P190', 'Q663587'] ['Q9733', 'P190', 'Q33959']
ASK WHERE { resource:Q9733 property:P190 resource:Q663587 . resource:Q9733 property:P190 resource:Q33959 }
NO and YES respectively
action is_in
entity Nouméa
action intersection
action find_reverse
entity Dolnja Bistrica
relation sister city
action find_reverse
entity Nice
relation sister city
['Nouméa', 'sister city', 'Dolnja Bistrica'] ['Nouméa', 'sister city', 'Nice']
ASK WHERE { resource:Nouméa property:sister_city resource:Dolnja_Bistrica . resource:Nouméa property:sister_city resource:Nice }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9733
P6
Q502895
USER
Which person is that french administrative division the head of goverment of ?
action filter_type
action find
entity Q9733
relation P6
type Q502895
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . resource:Q9733 property:P6 ?i }
Nouméa
action filter_type
action find
entity Nouméa
relation head of government
type common name
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . resource:Nouméa property:head_of_government ?i }
[]
common name
Q3173292
SYSTEM
Jean Lèques
Q3173292
action filter_type
action find
entity Q9733
relation P6
type Q502895
[ANSWER] is that french administrative division the head of goverment of
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . resource:Q9733 property:P6 ?i }
Jean Lèques
Jean Lèques is that french administrative division the head of goverment of
Jean Lèques
action filter_type
action find
entity Nouméa
relation head of government
type common name
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . resource:Nouméa property:head_of_government ?i }
[]