Simple Question (Direct)
Simple Question
Q1340843
P1376
Q20667921
USER
Which french administrative division has Ribiers as its county seat ?
(Q1340843,P1376,c(Q20667921))
action filter_type
action find
entity Q1340843
relation P1376
type Q20667921
['Q1340843', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?h WHERE { resource:Q1340843 property:P1376 ?h . ?h rdf:type ontology:Q20667921 }
Ribiers
action filter_type
action find
entity Ribiers
relation capital of
type type of french administrative division
['Ribiers', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?h WHERE { resource:Ribiers property:capital_of ?h . ?h rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1726941
SYSTEM
canton of Ribiers
Q1726941
(Q1340843,P1376,c(Q20667921))
action filter_type
action find
entity Q1340843
relation P1376
type Q20667921
The [ANSWER] has Ribiers as its county seat
['Q1340843', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?h WHERE { resource:Q1340843 property:P1376 ?h . ?h rdf:type ontology:Q20667921 }
canton of Ribiers
The canton of Ribiers has Ribiers as its county seat
canton of Ribiers
action filter_type
action find
entity Ribiers
relation capital of
type type of french administrative division
['Ribiers', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?h WHERE { resource:Ribiers property:capital_of ?h . ?h rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1726941
P17
Q15617994
USER
Which administrative territory is that french administrative division present in ?
(Q1726941,P17,c(Q15617994))
action filter_type
action find
entity Q1726941
relation P17
type Q15617994
['Q1726941', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q1726941 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
canton of Ribiers
action filter_type
action find
entity canton of Ribiers
relation country
type designation for an administrative territorial entity
['canton of Ribiers', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:canton_of_Ribiers property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q1726941,P17,c(Q15617994))
action filter_type
action find
entity Q1726941
relation P17
type Q15617994
That french administrative division is in [ANSWER]
['Q1726941', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q1726941 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
France
That french administrative division is in France
France
action filter_type
action find
entity canton of Ribiers
relation country
type designation for an administrative territorial entity
['canton of Ribiers', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:canton_of_Ribiers property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6157137
Q15617994
USER
And what about Japan National Route 287?
(Q6157137,P17,c(Q15617994))
action filter_type
action find
entity Q6157137
relation P17
type Q15617994
['Q6157137', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q6157137 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
Japan National Route 287
action filter_type
action find
entity Japan National Route 287
relation country
type designation for an administrative territorial entity
['Japan National Route 287', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Japan_National_Route_287 property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q6157137,P17,c(Q15617994))
action filter_type
action find
entity Q6157137
relation P17
type Q15617994
[ANSWER]
['Q6157137', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q6157137 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
Japan
Japan
action filter_type
action find
entity Japan National Route 287
relation country
type designation for an administrative territorial entity
['Japan National Route 287', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Japan_National_Route_287 property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2088357 Q2031291
USER
Which administrative territories are the countries of origin of around the same number of musical ensembles or releases as that administrative territory ?
(c(Q2088357)|c(Q2031291),P495,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q17
relation P495
type Q2088357
type Q2031291
[[{'concept': 'Q2088357'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?k WHERE { VALUES ( ?m ) { ( ontology:Q2088357 ) ( ontology:Q2031291 ) } . ?i rdf:type ?m } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:P495 resource:Q17 . { ?d rdf:type ?v . VALUES ( ?v ) { ( ontology:Q2088357 ) ( ontology:Q2031291 ) } } } } . FILTER ( ?r = ?s ) }
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_multi_types
action find_reverse
entity Japan
relation country of origin
type musical ensemble
type release
[[{'concept': 'musical ensemble'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?k WHERE { VALUES ( ?m ) { ( ontology:musical_ensemble ) ( ontology:release ) } . ?i rdf:type ?m } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:country_of_origin resource:Japan . { ?d rdf:type ?v . VALUES ( ?v ) { ( ontology:musical_ensemble ) ( ontology:release ) } } } } . FILTER ( ?r = ?s ) }
[]
designation for an administrative territorial entity musical ensemble release
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q145 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q2088357)|c(Q2031291),P495,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q17
relation P495
type Q2088357
type Q2031291
[ANSWERS] are the countries of origin of around the same number of musical ensembles or releases as that administrative territory
[[{'concept': 'Q2088357'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?k WHERE { VALUES ( ?m ) { ( ontology:Q2088357 ) ( ontology:Q2031291 ) } . ?i rdf:type ?m } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:P495 resource:Q17 . { ?d rdf:type ?v . VALUES ( ?v ) { ( ontology:Q2088357 ) ( ontology:Q2031291 ) } } } } . FILTER ( ?r = ?s ) }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
Italy, Brazil and Georgia are the countries of origin of around the same number of musical ensembles or releases as that administrative territory
Italy Brazil Georgia
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_multi_types
action find_reverse
entity Japan
relation country of origin
type musical ensemble
type release
[[{'concept': 'musical ensemble'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?k WHERE { VALUES ( ?m ) { ( ontology:musical_ensemble ) ( ontology:release ) } . ?i rdf:type ?m } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:country_of_origin resource:Japan . { ?d rdf:type ?v . VALUES ( ?v ) { ( ontology:musical_ensemble ) ( ontology:release ) } } } } . FILTER ( ?r = ?s ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q34 Q142
P27
Q502895
USER
Which people are a native of France and Sweden ?
AND((c(Q502895),P27,Q142), (c(Q502895),P27,Q34))
action filter_type
action intersection
action find_reverse
entity Q142
relation P27
action find_reverse
entity Q34
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q142'], [{'concept': 'Q502895'}, 'P27', 'Q34']]}
SELECT DISTINCT ?o WHERE { ?o property:P27 resource:Q142 . ?o property:P27 resource:Q34 . ?o rdf:type ontology:Q502895 }
Sweden France
action filter_type
action intersection
action find_reverse
entity France
relation country of citizenship
action find_reverse
entity Sweden
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'France'], [{'concept': 'common name'}, 'country of citizenship', 'Sweden']]}
SELECT DISTINCT ?o WHERE { ?o property:country_of_citizenship resource:France . ?o property:country_of_citizenship resource:Sweden . ?o rdf:type ontology:common_name }
[]
common name
Q541196 Q3490897 Q9141901 Q52927 Q3292377 Q3263733 Q21091463 Q3185670 Q2300248 Q2856840
SYSTEM
Some of them are Louis Gallodier, Sophie Daguin, Athanase Fouché, Charles XIV John of Sweden, Marie Baptiste, Louise Du Londel, Adrian Ingerson, Taphinon Desroches, Frédéric Lordon, Antoine de Beaulieu
Q766863 Q1871779 Q203215 Q1389203 Q2851353 Q753767 Q4504892 Q565544 Q2831115 Q52926 Q52927 Q19912077 Q3185670 Q3261966 Q2886001 Q2300248 Q3292377 Q6204257 Q3290721 Q3263733 Q3275847 Q4739540 Q4686988 Q2827030 Q2849859 Q541196 Q3385474 Q9141901 Q3420622 Q720704 Q321478 Q3587921 Q1291374 Q2847980 Q2856840 Q213762 Q3442623 Q2744264 Q2520519 Q5542638 Q2977623 Q5600828 Q2747886 Q22674420 Q3489481 Q127423 Q463469 Q21091463 Q3490897
AND((c(Q502895),P27,Q142), (c(Q502895),P27,Q34))
action filter_type
action intersection
action find_reverse
entity Q142
relation P27
action find_reverse
entity Q34
relation P27
type Q502895
[ANSWERS] are a native of France and Sweden
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q142'], [{'concept': 'Q502895'}, 'P27', 'Q34']]}
SELECT DISTINCT ?o WHERE { ?o property:P27 resource:Q142 . ?o property:P27 resource:Q34 . ?o rdf:type ontology:Q502895 }
Auguste Pellerin Louis Jean Desprez Max von Sydow Gunnar Andersson Anne Chabanceau de La Barre Marika Green Eric Barclay Anne L'Huillier Albert Demangeon Oscar I of Sweden Charles XIV John of Sweden Sébastien Boudet Taphinon Desroches Louis Frossard Barthelémy d'Armancourt Frédéric Lordon Marie Baptiste Louis Gustave Taraval Marguerite Morel Louise Du Londel Françoise-Éléonore Villain Amanda Adélaïde Victoire Hall Agnes de Frumerie Angélique Cénas Louis Gallodier Pierre Hubert L'Archevêque Athanase Fouché Joseph Saint-Fauraux Raimond Georg von Rosen Simon de la Vallée Élisabeth Soligny Johan Franck André Isidore Carey Antoine de Beaulieu Henri Marteau Claude Guilmois de Rosidor Antoine Bournonville Charles Didelot Reinhold Casimir Oscar Adelswärd Claude Kayat Jean-François Régis Cadier Peter Adolf Hall Gustave Adelswärd Pierre-Claude Soligny Victoria Silvstedt Pierre Bourdelot Adrian Ingerson Sophie Daguin
Louis Gallodier, Sophie Daguin, Athanase Fouché, Charles XIV John of Sweden, Marie Baptiste, Louise Du Londel, Adrian Ingerson, Taphinon Desroches, Frédéric Lordon and Antoine de Beaulieu are a native of France and Sweden
Louis Gallodier Sophie Daguin Athanase Fouché Charles XIV John of Sweden Marie Baptiste Louise Du Londel Adrian Ingerson Taphinon Desroches Frédéric Lordon Antoine de Beaulieu
action filter_type
action intersection
action find_reverse
entity France
relation country of citizenship
action find_reverse
entity Sweden
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'France'], [{'concept': 'common name'}, 'country of citizenship', 'Sweden']]}
SELECT DISTINCT ?o WHERE { ?o property:country_of_citizenship resource:France . ?o property:country_of_citizenship resource:Sweden . ?o rdf:type ontology:common_name }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P19
Q20667921 Q82794
USER
How many french administrative divisions or geographic regions are the places of birth of that person ?
(Q52927,P19,c(Q20667921)) (Q52927,P19,c(Q82794)) (Q541196,P19,c(Q20667921)) (Q541196,P19,c(Q82794)) (Q3490897,P19,c(Q20667921)) (Q3490897,P19,c(Q82794)) (Q9141901,P19,c(Q20667921)) (Q9141901,P19,c(Q82794)) (Q52927,P19,c(Q20667921)) (Q52927,P19,c(Q82794)) (Q3292377,P19,c(Q20667921)) (Q3292377,P19,c(Q82794)) (Q3263733,P19,c(Q20667921)) (Q3263733,P19,c(Q82794)) (Q21091463,P19,c(Q20667921)) (Q21091463,P19,c(Q82794)) (Q3185670,P19,c(Q20667921)) (Q3185670,P19,c(Q82794)) (Q2300248,P19,c(Q20667921)) (Q2300248,P19,c(Q82794)) (Q2856840,P19,c(Q20667921)) (Q2856840,P19,c(Q82794))
['Q52927', 'P19', {'concept': 'Q20667921'}] ['Q52927', 'P19', {'concept': 'Q82794'}] ['Q541196', 'P19', {'concept': 'Q20667921'}] ['Q541196', 'P19', {'concept': 'Q82794'}] ['Q3490897', 'P19', {'concept': 'Q20667921'}] ['Q3490897', 'P19', {'concept': 'Q82794'}] ['Q9141901', 'P19', {'concept': 'Q20667921'}] ['Q9141901', 'P19', {'concept': 'Q82794'}] ['Q52927', 'P19', {'concept': 'Q20667921'}] ['Q52927', 'P19', {'concept': 'Q82794'}] ['Q3292377', 'P19', {'concept': 'Q20667921'}] ['Q3292377', 'P19', {'concept': 'Q82794'}] ['Q3263733', 'P19', {'concept': 'Q20667921'}] ['Q3263733', 'P19', {'concept': 'Q82794'}] ['Q21091463', 'P19', {'concept': 'Q20667921'}] ['Q21091463', 'P19', {'concept': 'Q82794'}] ['Q3185670', 'P19', {'concept': 'Q20667921'}] ['Q3185670', 'P19', {'concept': 'Q82794'}] ['Q2300248', 'P19', {'concept': 'Q20667921'}] ['Q2300248', 'P19', {'concept': 'Q82794'}] ['Q2856840', 'P19', {'concept': 'Q20667921'}] ['Q2856840', 'P19', {'concept': 'Q82794'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q52927 property:Q1322263 ?z } UNION { resource:Q52927 property:Q1322263 ?y } UNION { resource:Q541196 property:Q1322263 ?z } UNION { resource:Q541196 property:Q1322263 ?y } UNION { resource:Q3490897 property:Q1322263 ?z } UNION { resource:Q3490897 property:Q1322263 ?y } UNION { resource:Q9141901 property:Q1322263 ?z } UNION { resource:Q9141901 property:Q1322263 ?y } UNION { resource:Q52927 property:Q1322263 ?z } UNION { resource:Q52927 property:Q1322263 ?y } UNION { resource:Q3292377 property:Q1322263 ?z } UNION { resource:Q3292377 property:Q1322263 ?y } UNION { resource:Q3263733 property:Q1322263 ?z } UNION { resource:Q3263733 property:Q1322263 ?y } UNION { resource:Q21091463 property:Q1322263 ?z } UNION { resource:Q21091463 property:Q1322263 ?y } UNION { resource:Q3185670 property:Q1322263 ?z } UNION { resource:Q3185670 property:Q1322263 ?y } UNION { resource:Q2300248 property:Q1322263 ?z } UNION { resource:Q2300248 property:Q1322263 ?y } UNION { resource:Q2856840 property:Q1322263 ?z } UNION { resource:Q2856840 property:Q1322263 ?y } } . ?z rdf:type ontology:Q20667921 . ?y rdf:type ontology:Q82794 }
['Charles XIV John of Sweden', 'place of birth', {'concept': 'type of french administrative division'}] ['Charles XIV John of Sweden', 'place of birth', {'concept': 'geographic region'}] ['Louis Gallodier', 'place of birth', {'concept': 'type of french administrative division'}] ['Louis Gallodier', 'place of birth', {'concept': 'geographic region'}] ['Sophie Daguin', 'place of birth', {'concept': 'type of french administrative division'}] ['Sophie Daguin', 'place of birth', {'concept': 'geographic region'}] ['Athanase Fouché', 'place of birth', {'concept': 'type of french administrative division'}] ['Athanase Fouché', 'place of birth', {'concept': 'geographic region'}] ['Charles XIV John of Sweden', 'place of birth', {'concept': 'type of french administrative division'}] ['Charles XIV John of Sweden', 'place of birth', {'concept': 'geographic region'}] ['Marie Baptiste', 'place of birth', {'concept': 'type of french administrative division'}] ['Marie Baptiste', 'place of birth', {'concept': 'geographic region'}] ['Louise Du Londel', 'place of birth', {'concept': 'type of french administrative division'}] ['Louise Du Londel', 'place of birth', {'concept': 'geographic region'}] ['Adrian Ingerson', 'place of birth', {'concept': 'type of french administrative division'}] ['Adrian Ingerson', 'place of birth', {'concept': 'geographic region'}] ['Taphinon Desroches', 'place of birth', {'concept': 'type of french administrative division'}] ['Taphinon Desroches', 'place of birth', {'concept': 'geographic region'}] ['Frédéric Lordon', 'place of birth', {'concept': 'type of french administrative division'}] ['Frédéric Lordon', 'place of birth', {'concept': 'geographic region'}] ['Antoine de Beaulieu', 'place of birth', {'concept': 'type of french administrative division'}] ['Antoine de Beaulieu', 'place of birth', {'concept': 'geographic region'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Charles_XIV_John_of_Sweden property:place_of_birth ?z } UNION { resource:Charles_XIV_John_of_Sweden property:place_of_birth ?y } UNION { resource:Louis_Gallodier property:place_of_birth ?z } UNION { resource:Louis_Gallodier property:place_of_birth ?y } UNION { resource:Sophie_Daguin property:place_of_birth ?z } UNION { resource:Sophie_Daguin property:place_of_birth ?y } UNION { resource:Athanase_Fouché property:place_of_birth ?z } UNION { resource:Athanase_Fouché property:place_of_birth ?y } UNION { resource:Charles_XIV_John_of_Sweden property:place_of_birth ?z } UNION { resource:Charles_XIV_John_of_Sweden property:place_of_birth ?y } UNION { resource:Marie_Baptiste property:place_of_birth ?z } UNION { resource:Marie_Baptiste property:place_of_birth ?y } UNION { resource:Louise_Du_Londel property:place_of_birth ?z } UNION { resource:Louise_Du_Londel property:place_of_birth ?y } UNION { resource:Adrian_Ingerson property:place_of_birth ?z } UNION { resource:Adrian_Ingerson property:place_of_birth ?y } UNION { resource:Taphinon_Desroches property:place_of_birth ?z } UNION { resource:Taphinon_Desroches property:place_of_birth ?y } UNION { resource:Frédéric_Lordon property:place_of_birth ?z } UNION { resource:Frédéric_Lordon property:place_of_birth ?y } UNION { resource:Antoine_de_Beaulieu property:place_of_birth ?z } UNION { resource:Antoine_de_Beaulieu property:place_of_birth ?y } } . ?z rdf:type ontology:type_of_french_administrative_division . ?y rdf:type ontology:geographic_region }
[]
type of french administrative division geographic region
Quantitative|Count|Mult. entity type|Clarification
Q3292377
SYSTEM
Did you mean Marie Baptiste ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q52927 property:Q1322263 ?z } UNION { resource:Q52927 property:Q1322263 ?y } UNION { resource:Q541196 property:Q1322263 ?z } UNION { resource:Q541196 property:Q1322263 ?y } UNION { resource:Q3490897 property:Q1322263 ?z } UNION { resource:Q3490897 property:Q1322263 ?y } UNION { resource:Q9141901 property:Q1322263 ?z } UNION { resource:Q9141901 property:Q1322263 ?y } UNION { resource:Q52927 property:Q1322263 ?z } UNION { resource:Q52927 property:Q1322263 ?y } UNION { resource:Q3292377 property:Q1322263 ?z } UNION { resource:Q3292377 property:Q1322263 ?y } UNION { resource:Q3263733 property:Q1322263 ?z } UNION { resource:Q3263733 property:Q1322263 ?y } UNION { resource:Q21091463 property:Q1322263 ?z } UNION { resource:Q21091463 property:Q1322263 ?y } UNION { resource:Q3185670 property:Q1322263 ?z } UNION { resource:Q3185670 property:Q1322263 ?y } UNION { resource:Q2300248 property:Q1322263 ?z } UNION { resource:Q2300248 property:Q1322263 ?y } UNION { resource:Q2856840 property:Q1322263 ?z } UNION { resource:Q2856840 property:Q1322263 ?y } } . ?z rdf:type ontology:Q20667921 . ?y rdf:type ontology:Q82794 }
Did you mean Marie Baptiste ?
Marie Baptiste
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Charles_XIV_John_of_Sweden property:place_of_birth ?z } UNION { resource:Charles_XIV_John_of_Sweden property:place_of_birth ?y } UNION { resource:Louis_Gallodier property:place_of_birth ?z } UNION { resource:Louis_Gallodier property:place_of_birth ?y } UNION { resource:Sophie_Daguin property:place_of_birth ?z } UNION { resource:Sophie_Daguin property:place_of_birth ?y } UNION { resource:Athanase_Fouché property:place_of_birth ?z } UNION { resource:Athanase_Fouché property:place_of_birth ?y } UNION { resource:Charles_XIV_John_of_Sweden property:place_of_birth ?z } UNION { resource:Charles_XIV_John_of_Sweden property:place_of_birth ?y } UNION { resource:Marie_Baptiste property:place_of_birth ?z } UNION { resource:Marie_Baptiste property:place_of_birth ?y } UNION { resource:Louise_Du_Londel property:place_of_birth ?z } UNION { resource:Louise_Du_Londel property:place_of_birth ?y } UNION { resource:Adrian_Ingerson property:place_of_birth ?z } UNION { resource:Adrian_Ingerson property:place_of_birth ?y } UNION { resource:Taphinon_Desroches property:place_of_birth ?z } UNION { resource:Taphinon_Desroches property:place_of_birth ?y } UNION { resource:Frédéric_Lordon property:place_of_birth ?z } UNION { resource:Frédéric_Lordon property:place_of_birth ?y } UNION { resource:Antoine_de_Beaulieu property:place_of_birth ?z } UNION { resource:Antoine_de_Beaulieu property:place_of_birth ?y } } . ?z rdf:type ontology:type_of_french_administrative_division . ?y rdf:type ontology:geographic_region }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Charles XIV John of Sweden. Could you tell me the answer for that?
(Q52927,P19,c(Q20667921)) (Q52927,P19,c(Q82794)) (Q541196,P19,c(Q20667921)) (Q541196,P19,c(Q82794)) (Q3490897,P19,c(Q20667921)) (Q3490897,P19,c(Q82794)) (Q9141901,P19,c(Q20667921)) (Q9141901,P19,c(Q82794)) (Q52927,P19,c(Q20667921)) (Q52927,P19,c(Q82794)) (Q3292377,P19,c(Q20667921)) (Q3292377,P19,c(Q82794)) (Q3263733,P19,c(Q20667921)) (Q3263733,P19,c(Q82794)) (Q21091463,P19,c(Q20667921)) (Q21091463,P19,c(Q82794)) (Q3185670,P19,c(Q20667921)) (Q3185670,P19,c(Q82794)) (Q2300248,P19,c(Q20667921)) (Q2300248,P19,c(Q82794)) (Q2856840,P19,c(Q20667921)) (Q2856840,P19,c(Q82794))
Q52927
['Q52927', 'P19', {'concept': 'Q20667921'}] ['Q52927', 'P19', {'concept': 'Q82794'}] ['Q541196', 'P19', {'concept': 'Q20667921'}] ['Q541196', 'P19', {'concept': 'Q82794'}] ['Q3490897', 'P19', {'concept': 'Q20667921'}] ['Q3490897', 'P19', {'concept': 'Q82794'}] ['Q9141901', 'P19', {'concept': 'Q20667921'}] ['Q9141901', 'P19', {'concept': 'Q82794'}] ['Q52927', 'P19', {'concept': 'Q20667921'}] ['Q52927', 'P19', {'concept': 'Q82794'}] ['Q3292377', 'P19', {'concept': 'Q20667921'}] ['Q3292377', 'P19', {'concept': 'Q82794'}] ['Q3263733', 'P19', {'concept': 'Q20667921'}] ['Q3263733', 'P19', {'concept': 'Q82794'}] ['Q21091463', 'P19', {'concept': 'Q20667921'}] ['Q21091463', 'P19', {'concept': 'Q82794'}] ['Q3185670', 'P19', {'concept': 'Q20667921'}] ['Q3185670', 'P19', {'concept': 'Q82794'}] ['Q2300248', 'P19', {'concept': 'Q20667921'}] ['Q2300248', 'P19', {'concept': 'Q82794'}] ['Q2856840', 'P19', {'concept': 'Q20667921'}] ['Q2856840', 'P19', {'concept': 'Q82794'}]
['Charles XIV John of Sweden', 'place of birth', {'concept': 'type of french administrative division'}] ['Charles XIV John of Sweden', 'place of birth', {'concept': 'geographic region'}] ['Louis Gallodier', 'place of birth', {'concept': 'type of french administrative division'}] ['Louis Gallodier', 'place of birth', {'concept': 'geographic region'}] ['Sophie Daguin', 'place of birth', {'concept': 'type of french administrative division'}] ['Sophie Daguin', 'place of birth', {'concept': 'geographic region'}] ['Athanase Fouché', 'place of birth', {'concept': 'type of french administrative division'}] ['Athanase Fouché', 'place of birth', {'concept': 'geographic region'}] ['Charles XIV John of Sweden', 'place of birth', {'concept': 'type of french administrative division'}] ['Charles XIV John of Sweden', 'place of birth', {'concept': 'geographic region'}] ['Marie Baptiste', 'place of birth', {'concept': 'type of french administrative division'}] ['Marie Baptiste', 'place of birth', {'concept': 'geographic region'}] ['Louise Du Londel', 'place of birth', {'concept': 'type of french administrative division'}] ['Louise Du Londel', 'place of birth', {'concept': 'geographic region'}] ['Adrian Ingerson', 'place of birth', {'concept': 'type of french administrative division'}] ['Adrian Ingerson', 'place of birth', {'concept': 'geographic region'}] ['Taphinon Desroches', 'place of birth', {'concept': 'type of french administrative division'}] ['Taphinon Desroches', 'place of birth', {'concept': 'geographic region'}] ['Frédéric Lordon', 'place of birth', {'concept': 'type of french administrative division'}] ['Frédéric Lordon', 'place of birth', {'concept': 'geographic region'}] ['Antoine de Beaulieu', 'place of birth', {'concept': 'type of french administrative division'}] ['Antoine de Beaulieu', 'place of birth', {'concept': 'geographic region'}]
[]
SYSTEM
2
Q132671 Q104285
(Q52927,P19,c(Q20667921)) (Q52927,P19,c(Q82794)) (Q541196,P19,c(Q20667921)) (Q541196,P19,c(Q82794)) (Q3490897,P19,c(Q20667921)) (Q3490897,P19,c(Q82794)) (Q9141901,P19,c(Q20667921)) (Q9141901,P19,c(Q82794)) (Q52927,P19,c(Q20667921)) (Q52927,P19,c(Q82794)) (Q3292377,P19,c(Q20667921)) (Q3292377,P19,c(Q82794)) (Q3263733,P19,c(Q20667921)) (Q3263733,P19,c(Q82794)) (Q21091463,P19,c(Q20667921)) (Q21091463,P19,c(Q82794)) (Q3185670,P19,c(Q20667921)) (Q3185670,P19,c(Q82794)) (Q2300248,P19,c(Q20667921)) (Q2300248,P19,c(Q82794)) (Q2856840,P19,c(Q20667921)) (Q2856840,P19,c(Q82794))
[ANSWER]
['Q52927', 'P19', {'concept': 'Q20667921'}] ['Q52927', 'P19', {'concept': 'Q82794'}] ['Q541196', 'P19', {'concept': 'Q20667921'}] ['Q541196', 'P19', {'concept': 'Q82794'}] ['Q3490897', 'P19', {'concept': 'Q20667921'}] ['Q3490897', 'P19', {'concept': 'Q82794'}] ['Q9141901', 'P19', {'concept': 'Q20667921'}] ['Q9141901', 'P19', {'concept': 'Q82794'}] ['Q52927', 'P19', {'concept': 'Q20667921'}] ['Q52927', 'P19', {'concept': 'Q82794'}] ['Q3292377', 'P19', {'concept': 'Q20667921'}] ['Q3292377', 'P19', {'concept': 'Q82794'}] ['Q3263733', 'P19', {'concept': 'Q20667921'}] ['Q3263733', 'P19', {'concept': 'Q82794'}] ['Q21091463', 'P19', {'concept': 'Q20667921'}] ['Q21091463', 'P19', {'concept': 'Q82794'}] ['Q3185670', 'P19', {'concept': 'Q20667921'}] ['Q3185670', 'P19', {'concept': 'Q82794'}] ['Q2300248', 'P19', {'concept': 'Q20667921'}] ['Q2300248', 'P19', {'concept': 'Q82794'}] ['Q2856840', 'P19', {'concept': 'Q20667921'}] ['Q2856840', 'P19', {'concept': 'Q82794'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q52927 property:Q1322263 ?z } UNION { resource:Q52927 property:Q1322263 ?y } UNION { resource:Q541196 property:Q1322263 ?z } UNION { resource:Q541196 property:Q1322263 ?y } UNION { resource:Q3490897 property:Q1322263 ?z } UNION { resource:Q3490897 property:Q1322263 ?y } UNION { resource:Q9141901 property:Q1322263 ?z } UNION { resource:Q9141901 property:Q1322263 ?y } UNION { resource:Q52927 property:Q1322263 ?z } UNION { resource:Q52927 property:Q1322263 ?y } UNION { resource:Q3292377 property:Q1322263 ?z } UNION { resource:Q3292377 property:Q1322263 ?y } UNION { resource:Q3263733 property:Q1322263 ?z } UNION { resource:Q3263733 property:Q1322263 ?y } UNION { resource:Q21091463 property:Q1322263 ?z } UNION { resource:Q21091463 property:Q1322263 ?y } UNION { resource:Q3185670 property:Q1322263 ?z } UNION { resource:Q3185670 property:Q1322263 ?y } UNION { resource:Q2300248 property:Q1322263 ?z } UNION { resource:Q2300248 property:Q1322263 ?y } UNION { resource:Q2856840 property:Q1322263 ?z } UNION { resource:Q2856840 property:Q1322263 ?y } } . ?z rdf:type ontology:Q20667921 . ?y rdf:type ontology:Q82794 }
Pau Occitania
2
['Charles XIV John of Sweden', 'place of birth', {'concept': 'type of french administrative division'}] ['Charles XIV John of Sweden', 'place of birth', {'concept': 'geographic region'}] ['Louis Gallodier', 'place of birth', {'concept': 'type of french administrative division'}] ['Louis Gallodier', 'place of birth', {'concept': 'geographic region'}] ['Sophie Daguin', 'place of birth', {'concept': 'type of french administrative division'}] ['Sophie Daguin', 'place of birth', {'concept': 'geographic region'}] ['Athanase Fouché', 'place of birth', {'concept': 'type of french administrative division'}] ['Athanase Fouché', 'place of birth', {'concept': 'geographic region'}] ['Charles XIV John of Sweden', 'place of birth', {'concept': 'type of french administrative division'}] ['Charles XIV John of Sweden', 'place of birth', {'concept': 'geographic region'}] ['Marie Baptiste', 'place of birth', {'concept': 'type of french administrative division'}] ['Marie Baptiste', 'place of birth', {'concept': 'geographic region'}] ['Louise Du Londel', 'place of birth', {'concept': 'type of french administrative division'}] ['Louise Du Londel', 'place of birth', {'concept': 'geographic region'}] ['Adrian Ingerson', 'place of birth', {'concept': 'type of french administrative division'}] ['Adrian Ingerson', 'place of birth', {'concept': 'geographic region'}] ['Taphinon Desroches', 'place of birth', {'concept': 'type of french administrative division'}] ['Taphinon Desroches', 'place of birth', {'concept': 'geographic region'}] ['Frédéric Lordon', 'place of birth', {'concept': 'type of french administrative division'}] ['Frédéric Lordon', 'place of birth', {'concept': 'geographic region'}] ['Antoine de Beaulieu', 'place of birth', {'concept': 'type of french administrative division'}] ['Antoine de Beaulieu', 'place of birth', {'concept': 'geographic region'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Charles_XIV_John_of_Sweden property:place_of_birth ?z } UNION { resource:Charles_XIV_John_of_Sweden property:place_of_birth ?y } UNION { resource:Louis_Gallodier property:place_of_birth ?z } UNION { resource:Louis_Gallodier property:place_of_birth ?y } UNION { resource:Sophie_Daguin property:place_of_birth ?z } UNION { resource:Sophie_Daguin property:place_of_birth ?y } UNION { resource:Athanase_Fouché property:place_of_birth ?z } UNION { resource:Athanase_Fouché property:place_of_birth ?y } UNION { resource:Charles_XIV_John_of_Sweden property:place_of_birth ?z } UNION { resource:Charles_XIV_John_of_Sweden property:place_of_birth ?y } UNION { resource:Marie_Baptiste property:place_of_birth ?z } UNION { resource:Marie_Baptiste property:place_of_birth ?y } UNION { resource:Louise_Du_Londel property:place_of_birth ?z } UNION { resource:Louise_Du_Londel property:place_of_birth ?y } UNION { resource:Adrian_Ingerson property:place_of_birth ?z } UNION { resource:Adrian_Ingerson property:place_of_birth ?y } UNION { resource:Taphinon_Desroches property:place_of_birth ?z } UNION { resource:Taphinon_Desroches property:place_of_birth ?y } UNION { resource:Frédéric_Lordon property:place_of_birth ?z } UNION { resource:Frédéric_Lordon property:place_of_birth ?y } UNION { resource:Antoine_de_Beaulieu property:place_of_birth ?z } UNION { resource:Antoine_de_Beaulieu property:place_of_birth ?y } } . ?z rdf:type ontology:type_of_french_administrative_division . ?y rdf:type ontology:geographic_region }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P3279
Q502895 Q18608583 Q1344963
USER
How many people were the statistical leader of exactly 2 recurring sporting events or world championships ?
(c(Q18608583)|c(Q1344963),P3279,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q18608583
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q1344963
value 2
[[{'concept': 'Q18608583'}, {'concept': 'Q1344963'}], 'P3279', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) ?k WHERE { { ?o property:P3279 ?k . ?k rdf:type ontology:Q502895 . ?o rdf:type ontology:Q18608583 } UNION { ?o property:P3279 ?k . ?k rdf:type ontology:Q502895 . ?o rdf:type ontology:Q1344963 } } GROUP BY ?k } . FILTER ( ?t = 2 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation statistical leader
type common name
type recurring sporting event
action find_reverse_tuple_counts
relation statistical leader
type common name
type world championship
value 2
[[{'concept': 'recurring sporting event'}, {'concept': 'world championship'}], 'statistical leader', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) ?k WHERE { { ?o property:statistical_leader ?k . ?k rdf:type ontology:common_name . ?o rdf:type ontology:recurring_sporting_event } UNION { ?o property:statistical_leader ?k . ?k rdf:type ontology:common_name . ?o rdf:type ontology:world_championship } } GROUP BY ?k } . FILTER ( ?t = 2 ) }
[]
common name recurring sporting event world championship
SYSTEM
8
Q1791161 Q1773788 Q4142118 Q721076 Q193108 Q270653 Q384894 Q459258
(c(Q18608583)|c(Q1344963),P3279,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q18608583
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q1344963
value 2
[ANSWER]
[[{'concept': 'Q18608583'}, {'concept': 'Q1344963'}], 'P3279', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) ?k WHERE { { ?o property:P3279 ?k . ?k rdf:type ontology:Q502895 . ?o rdf:type ontology:Q18608583 } UNION { ?o property:P3279 ?k . ?k rdf:type ontology:Q502895 . ?o rdf:type ontology:Q1344963 } } GROUP BY ?k } . FILTER ( ?t = 2 ) }
Hortência Marcari Mieczysław Młynarski Atanas Golomeev Alberto Herreros Tony Parker Lauren Jackson Giorgos Kolokithas Sancho Lyttle
8
action count
action equal
action union
action find_reverse_tuple_counts
relation statistical leader
type common name
type recurring sporting event
action find_reverse_tuple_counts
relation statistical leader
type common name
type world championship
value 2
[[{'concept': 'recurring sporting event'}, {'concept': 'world championship'}], 'statistical leader', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) ?k WHERE { { ?o property:statistical_leader ?k . ?k rdf:type ontology:common_name . ?o rdf:type ontology:recurring_sporting_event } UNION { ?o property:statistical_leader ?k . ?k rdf:type ontology:common_name . ?o rdf:type ontology:world_championship } } GROUP BY ?k } . FILTER ( ?t = 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by around 939 people ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 939
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?f ) WHERE { ?g property:P1303 ?m . ?m rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?m } . FILTER ( ?f = 939 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 939
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?f ) WHERE { ?g property:instrument ?m . ?m rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?m } . FILTER ( ?f = 939 ) }
[]
musical instrument common name
SYSTEM
63
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 939
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?f ) WHERE { ?g property:P1303 ?m . ?m rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?m } . FILTER ( ?f = 939 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
63
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 939
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?f ) WHERE { ?g property:instrument ?m . ?m rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?m } . FILTER ( ?f = 939 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q30
P194
Q35749 Q701632 Q15617994
USER
How many administrative territories have more number of parliaments or municipal councils as their council than United States of America ?
(c(Q15617994),P194,c(Q35749)|c(Q701632))
action count
action greater
action union
action find_tuple_counts
relation P194
type Q15617994
type Q35749
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action count
action filter_multi_types
action find
entity Q30
relation P194
type Q35749
type Q701632
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q35749'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?o ) WHERE { VALUES ( ?s ) { ( ontology:Q35749 ) ( ontology:Q701632 ) } . ?v rdf:type ?s } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { { ?d rdf:type ?t . VALUES ( ?t ) { ( ontology:Q35749 ) ( ontology:Q701632 ) } } . resource:Q30 property:P194 ?d } } . FILTER ( ?o > ?h ) }
United States of America
action count
action greater
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action count
action filter_multi_types
action find
entity United States of America
relation legislative body
type parliament
type municipal council
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'parliament'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?o ) WHERE { VALUES ( ?s ) { ( ontology:parliament ) ( ontology:municipal_council ) } . ?v rdf:type ?s } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { { ?d rdf:type ?t . VALUES ( ?t ) { ( ontology:parliament ) ( ontology:municipal_council ) } } . resource:United_States_of_America property:legislative_body ?d } } . FILTER ( ?o > ?h ) }
[]
parliament municipal council designation for an administrative territorial entity
SYSTEM
12
Q2806757 Q1948 Q1979 Q1974 Q2009 Q2007 Q2003 Q1904 Q1989 Q212 Q1951 Q2023
(c(Q15617994),P194,c(Q35749)|c(Q701632))
action count
action greater
action union
action find_tuple_counts
relation P194
type Q15617994
type Q35749
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action count
action filter_multi_types
action find
entity Q30
relation P194
type Q35749
type Q701632
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q35749'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?o ) WHERE { VALUES ( ?s ) { ( ontology:Q35749 ) ( ontology:Q701632 ) } . ?v rdf:type ?s } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { { ?d rdf:type ?t . VALUES ( ?t ) { ( ontology:Q35749 ) ( ontology:Q701632 ) } } . resource:Q30 property:P194 ?d } } . FILTER ( ?o > ?h ) }
105 Mile Post Indian Reserve No. 2 Manitoba Prince Edward Island British Columbia Yukon Northwest Territories Newfoundland and Labrador Ontario Saskatchewan Ukraine Alberta Nunavut
12
action count
action greater
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action count
action filter_multi_types
action find
entity United States of America
relation legislative body
type parliament
type municipal council
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'parliament'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?o ) WHERE { VALUES ( ?s ) { ( ontology:parliament ) ( ontology:municipal_council ) } . ?v rdf:type ?s } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { { ?d rdf:type ?t . VALUES ( ?t ) { ( ontology:parliament ) ( ontology:municipal_council ) } } . resource:United_States_of_America property:legislative_body ?d } } . FILTER ( ?o > ?h ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q52927
P53
Q13417114
USER
What dynasty does Charles XIV John of Sweden belong to ?
(Q52927,P53,c(Q13417114))
action filter_type
action find
entity Q52927
relation P53
type Q13417114
['Q52927', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q13417114 . resource:Q52927 property:P53 ?t }
Charles XIV John of Sweden
action filter_type
action find
entity Charles XIV John of Sweden
relation noble family
type noble family
['Charles XIV John of Sweden', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:noble_family . resource:Charles_XIV_John_of_Sweden property:noble_family ?t }
[]
noble family
Q201625
SYSTEM
House of Bernadotte
Q201625
(Q52927,P53,c(Q13417114))
action filter_type
action find
entity Q52927
relation P53
type Q13417114
Charles XIV John of Sweden belongs to [ANSWER]
['Q52927', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q13417114 . resource:Q52927 property:P53 ?t }
House of Bernadotte
Charles XIV John of Sweden belongs to House of Bernadotte
House of Bernadotte
action filter_type
action find
entity Charles XIV John of Sweden
relation noble family
type noble family
['Charles XIV John of Sweden', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:noble_family . resource:Charles_XIV_John_of_Sweden property:noble_family ?t }
[]