Simple Question (Direct)
Simple Question
Q864726
P47
Q20667921
USER
Which french administrative divisions are adjacent to Bézu-le-Guéry ?
(Q864726,P47,c(Q20667921))
action filter_type
action find
entity Q864726
relation P47
type Q20667921
['Q864726', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { resource:Q864726 property:P47 ?v . ?v rdf:type ontology:Q20667921 }
Bézu-le-Guéry
action filter_type
action find
entity Bézu-le-Guéry
relation shares border with
type type of french administrative division
['Bézu-le-Guéry', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { resource:Bézu-le-Guéry property:shares_border_with ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q664355 Q1016887 Q775804
SYSTEM
Marigny-en-Orxois, Coupru, Sainte-Aulde
Q869468 Q847597 Q1459955 Q847568 Q664355 Q868136 Q775804 Q1460448 Q1016887
(Q864726,P47,c(Q20667921))
action filter_type
action find
entity Q864726
relation P47
type Q20667921
[ANSWERS] are adjacent to Bézu-le-Guéry
['Q864726', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { resource:Q864726 property:P47 ?v . ?v rdf:type ontology:Q20667921 }
Montreuil-aux-Lions Domptin Nanteuil-sur-Marne Crouttes-sur-Marne Marigny-en-Orxois Villiers-Saint-Denis Sainte-Aulde Méry-sur-Marne Coupru
Marigny-en-Orxois, Coupru and Sainte-Aulde are adjacent to Bézu-le-Guéry
Marigny-en-Orxois Coupru Sainte-Aulde
action filter_type
action find
entity Bézu-le-Guéry
relation shares border with
type type of french administrative division
['Bézu-le-Guéry', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { resource:Bézu-le-Guéry property:shares_border_with ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q664355 Q1016887 Q775804
P17
Q15617994
USER
Which administrative territories are Marigny-en-Orxois, Coupru and Sainte-Aulde a part of ?
(Q664355,P17,c(Q15617994)) (Q1016887,P17,c(Q15617994)) (Q775804,P17,c(Q15617994))
action union
action filter_type
action find
entity Q664355
relation P17
type Q15617994
action filter_type
action find
entity Q1016887
relation P17
type Q15617994
action filter_type
action find
entity Q775804
relation P17
type Q15617994
['Q664355', 'P17', {'concept': 'Q15617994'}] ['Q1016887', 'P17', {'concept': 'Q15617994'}] ['Q775804', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?q ) { ( resource:Q664355 ) ( resource:Q1016887 ) } . ?q property:P17 ?o }
Marigny-en-Orxois Coupru Sainte-Aulde
action union
action filter_type
action find
entity Marigny-en-Orxois
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Coupru
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Sainte-Aulde
relation country
type designation for an administrative territorial entity
['Marigny-en-Orxois', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Coupru', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Sainte-Aulde', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?q ) { ( resource:Marigny-en-Orxois ) ( resource:Coupru ) } . ?q property:country ?o }
[]
designation for an administrative territorial entity
Q142 Q142 Q142
SYSTEM
France
Q142 Q142 Q142
(Q664355,P17,c(Q15617994)) (Q1016887,P17,c(Q15617994)) (Q775804,P17,c(Q15617994))
action union
action filter_type
action find
entity Q664355
relation P17
type Q15617994
action filter_type
action find
entity Q1016887
relation P17
type Q15617994
action filter_type
action find
entity Q775804
relation P17
type Q15617994
[ANSWER], [ANSWER] and [ANSWER] are Marigny-en-Orxois, Coupru and Sainte-Aulde a part of
['Q664355', 'P17', {'concept': 'Q15617994'}] ['Q1016887', 'P17', {'concept': 'Q15617994'}] ['Q775804', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?q ) { ( resource:Q664355 ) ( resource:Q1016887 ) } . ?q property:P17 ?o }
France France France
France, France and France are Marigny-en-Orxois, Coupru and Sainte-Aulde a part of
France France France
action union
action filter_type
action find
entity Marigny-en-Orxois
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Coupru
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Sainte-Aulde
relation country
type designation for an administrative territorial entity
['Marigny-en-Orxois', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Coupru', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Sainte-Aulde', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?q ) { ( resource:Marigny-en-Orxois ) ( resource:Coupru ) } . ?q property:country ?o }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P127
Q15709879
USER
Which artwork series are owned by France ?
(c(Q15709879),P127,Q142)
action filter_type
action find_reverse
entity Q142
relation P127
type Q15709879
[{'concept': 'Q15709879'}, 'P127', 'Q142']
SELECT DISTINCT ?u WHERE { ?u property:P127 resource:Q142 . ?u rdf:type ontology:Q15709879 }
France
action filter_type
action find_reverse
entity France
relation owned by
type artwork series
[{'concept': 'artwork series'}, 'owned by', 'France']
SELECT DISTINCT ?u WHERE { ?u property:owned_by resource:France . ?u rdf:type ontology:artwork_series }
[]
artwork series
Q2289754 Q20022422
SYSTEM
The Lady and the Unicorn, Vues des ports de France
Q2289754 Q20022422
(c(Q15709879),P127,Q142)
action filter_type
action find_reverse
entity Q142
relation P127
type Q15709879
[ANSWERS] are owned by France
[{'concept': 'Q15709879'}, 'P127', 'Q142']
SELECT DISTINCT ?u WHERE { ?u property:P127 resource:Q142 . ?u rdf:type ontology:Q15709879 }
The Lady and the Unicorn Vues des ports de France
The Lady and the Unicorn and Vues des ports de France are owned by France
The Lady and the Unicorn Vues des ports de France
action filter_type
action find_reverse
entity France
relation owned by
type artwork series
[{'concept': 'artwork series'}, 'owned by', 'France']
SELECT DISTINCT ?u WHERE { ?u property:owned_by resource:France . ?u rdf:type ontology:artwork_series }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2289754 Q20022422
P127
Q15617994
USER
Who own those artwork series ?
(Q2289754,P127,c(Q15617994)) (Q20022422,P127,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P127
type Q15617994
['Q2289754', 'P127', {'concept': 'Q15617994'}] ['Q20022422', 'P127', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?e ) { ( resource:Q2289754 ) ( resource:Q20022422 ) } . ?m rdf:type ontology:Q15617994 . ?e property:P127 ?m }
The Lady and the Unicorn Vues des ports de France
action filter_type
action find
entity prev_answer
relation owned by
type designation for an administrative territorial entity
['The Lady and the Unicorn', 'owned by', {'concept': 'designation for an administrative territorial entity'}] ['Vues des ports de France', 'owned by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?e ) { ( resource:The_Lady_and_the_Unicorn ) ( resource:Vues_des_ports_de_France ) } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:owned_by ?m }
[]
designation for an administrative territorial entity
Q142 Q142
SYSTEM
France
Q142 Q142
(Q2289754,P127,c(Q15617994)) (Q20022422,P127,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P127
type Q15617994
[ANSWER] and [ANSWER] own those artwork series
['Q2289754', 'P127', {'concept': 'Q15617994'}] ['Q20022422', 'P127', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?e ) { ( resource:Q2289754 ) ( resource:Q20022422 ) } . ?m rdf:type ontology:Q15617994 . ?e property:P127 ?m }
France France
France and France own those artwork series
France France
action filter_type
action find
entity prev_answer
relation owned by
type designation for an administrative territorial entity
['The Lady and the Unicorn', 'owned by', {'concept': 'designation for an administrative territorial entity'}] ['Vues des ports de France', 'owned by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?e ) { ( resource:The_Lady_and_the_Unicorn ) ( resource:Vues_des_ports_de_France ) } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:owned_by ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P1532
Q502895
USER
Whose people are that administrative territory ?
(c(Q502895),P1532,Q142) (c(Q502895),P1532,Q142)
action filter_type
action find_reverse
entity Q142
relation P1532
type Q502895
[{'concept': 'Q502895'}, 'P1532', 'Q142'] [{'concept': 'Q502895'}, 'P1532', 'Q142']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P1532 resource:Q142 }
France
action filter_type
action find_reverse
entity France
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'France'] [{'concept': 'common name'}, 'country for sport', 'France']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:country_for_sport resource:France }
[]
common name
Q3358507 Q26780559 Q273561
SYSTEM
Ousmane Diarra, Rodica Nagel, Anne-Marie Colchen
Q22667577 Q3358507 Q24152306 Q20524784 Q273561 Q16647692 Q20630283 Q22083801 Q25435269 Q25435278 Q20993695 Q25911245 Q273422 Q26780559 Q21936459
(c(Q502895),P1532,Q142) (c(Q502895),P1532,Q142)
action filter_type
action find_reverse
entity Q142
relation P1532
type Q502895
[ANSWERS] are that administrative territory
[{'concept': 'Q502895'}, 'P1532', 'Q142'] [{'concept': 'Q502895'}, 'P1532', 'Q142']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P1532 resource:Q142 }
Gérald Baudouin Ousmane Diarra Stanley Joseph Bernard Picone Anne-Marie Colchen Justine Fedronic Djamel Aïteur Dylan Barbier Carolle Zahi Floriane Gnafoua Agnès Teppe Aurel Manga Nicole Duclos Rodica Nagel Maeva Danois
Ousmane Diarra, Rodica Nagel and Anne-Marie Colchen are that administrative territory
Ousmane Diarra Rodica Nagel Anne-Marie Colchen
action filter_type
action find_reverse
entity France
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'France'] [{'concept': 'common name'}, 'country for sport', 'France']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:country_for_sport resource:France }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q15617994 Q699405 Q13406554
USER
How many administrative territories are atmost 1403 dwellings or sport competitions situated in ?
(c(Q699405)|c(Q13406554),P17,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q699405
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q13406554
value 1403
[[{'concept': 'Q699405'}, {'concept': 'Q13406554'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { FILTER ( ?m <= 1403 ) . { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?m ) WHERE { ?f rdf:type ?q . VALUES ( ?q ) { ( ontology:Q13406554 ) ( ontology:Q699405 ) } } GROUP BY ?j } }
action count
action atmost
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type dwelling
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type sport competition
value 1403
[[{'concept': 'dwelling'}, {'concept': 'sport competition'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { FILTER ( ?m <= 1403 ) . { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?m ) WHERE { ?f rdf:type ?q . VALUES ( ?q ) { ( ontology:sport_competition ) ( ontology:dwelling ) } } GROUP BY ?j } }
[]
designation for an administrative territorial entity dwelling sport competition
SYSTEM
234
Q702 Q804 Q801 Q800 Q1256 Q709 Q398 Q805 Q339952 Q419 Q270508 Q668 Q684030 Q2172530 Q414 Q142 Q55 Q12536 Q262 Q148 Q783 Q784 Q265 Q214 Q640426 Q36678 Q736029 Q712 Q711 Q710 Q717 Q837 Q565812 Q187035 Q252 Q399 Q1462 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q517333 Q796 Q794 Q954 Q889 Q2001966 Q326029 Q884 Q958 Q881 Q986 Q219 Q153529 Q695316 Q4628 Q826 Q165040 Q822 Q241 Q242 Q244 Q315667 Q811 Q736 Q153136 Q1210 Q33 Q921 Q31 Q924 Q36 Q34 Q928 Q155019 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q107426 Q424 Q730 Q1282 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1042 Q1041 Q27 Q28 Q177323 Q313175 Q149621 Q1025 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q836 Q34762 Q1458 Q786 Q32 Q228 Q3462133 Q227 Q225 Q224 Q223 Q222 Q221 Q815731 Q47261 Q96 Q229 Q347 Q1050 Q977 Q17 Q704288 Q10957559 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q389004 Q754 Q750 Q212 Q213 Q211 Q217 Q1013 Q215 Q218 Q160307 Q164092 Q37 Q1483510 Q912 Q2662372 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q829700 Q1009 Q1008 Q971 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q686 Q193152 Q760 Q29 Q574 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q874 Q79 Q696651 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q148499 Q1011 Q945 Q678 Q8575586 Q529605 Q1039 Q672 Q33788 Q929 Q11024667 Q863 Q1049 Q869 Q426025 Q953
(c(Q699405)|c(Q13406554),P17,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q699405
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q13406554
value 1403
[ANSWER]
[[{'concept': 'Q699405'}, {'concept': 'Q13406554'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { FILTER ( ?m <= 1403 ) . { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?m ) WHERE { ?f rdf:type ?q . VALUES ( ?q ) { ( ontology:Q13406554 ) ( ontology:Q699405 ) } } GROUP BY ?j } }
Federated States of Micronesia Panama Israel Costa Rica Liguria Marshall Islands Bahrain Yemen Principality of Orange-Nassau Peru Andora India Principality of Serbia Electorate of Württemberg Argentina France Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Dominica Uzbekistan Slovakia Stahnsdorf West Bank Nassau-Siegen Fiji Mongolia Kiribati Venezuela Nepal Principality of Calenberg Principality of Albania Indonesia Armenia Sardinia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Principality of Polotsk Iraq Iran Zimbabwe Afghanistan Company rule in India Duchy of Brunswick South Korea South Sudan Vietnam Eritrea Bulgaria Duchy of Milan Schwarzburg-Rudolstadt Faroe Islands Maldives Duchy of Parma Lebanon Cuba Belize Barbados Saxe-Weimar Nicaragua Ecuador Habsburg Empire Lombardy Finland Brunei Belgium Tanzania Poland Sweden Philippines Duchy of Lorraine Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Anjou Cambodia Suriname Lazio Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Seychelles Senegal Ireland Hungary developing country Saxe-Lauenburg district Mauritania Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Myanmar Principality of Bayreuth Calabria Dominican Republic Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Duchy of Bavaria Mexico Cyprus Liechtenstein Swaziland Djibouti Japan Duchy of Holstein Moldavia Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Wallachia Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Lesotho Slovenia Romania Fatimid caliphate Duchy of Saxony Lithuania Principality of Wales Mali Principality of Minsk Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Saxe-Jena Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Samoa Principality of Catalonia Niue Duchy of Zaslawye Vanuatu Great Moravia Saint Lucia Spain East Timor Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Turkmenistan Egypt Saxe-Eisenach Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Margraviate of Brandenburg Cape Verde Togo Tonga Umayyad Caliphate Electorate of Hesse Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Duchy of Mecklenburg-Schwerin Tajikistan Sudan Thailand Duchy of Savoy Zambia
234
action count
action atmost
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type dwelling
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type sport competition
value 1403
[[{'concept': 'dwelling'}, {'concept': 'sport competition'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { FILTER ( ?m <= 1403 ) . { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?m ) WHERE { ?f rdf:type ?q . VALUES ( ?q ) { ( ontology:sport_competition ) ( ontology:dwelling ) } } GROUP BY ?j } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do max number of people know to play ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?j ) { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?o ) WHERE { ?z property:P1303 ?q . ?q rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?q } } . { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?k ) WHERE { ?g rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 . ?d property:P1303 ?g } GROUP BY ?g } . FILTER ( ?k = ?j ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?j ) { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?o ) WHERE { ?z property:instrument ?q . ?q rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?q } } . { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?k ) WHERE { ?g rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name . ?d property:instrument ?g } GROUP BY ?g } . FILTER ( ?k = ?j ) }
[]
musical instrument common name
Q5994
SYSTEM
piano
Q5994
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
Max number of people know how [ANSWER]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?j ) { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?o ) WHERE { ?z property:P1303 ?q . ?q rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?q } } . { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?k ) WHERE { ?g rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 . ?d property:P1303 ?g } GROUP BY ?g } . FILTER ( ?k = ?j ) }
piano
Max number of people know how piano
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?j ) { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?o ) WHERE { ?z property:instrument ?q . ?q rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?q } } . { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?k ) WHERE { ?g rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name . ?d property:instrument ?g } GROUP BY ?g } . FILTER ( ?k = ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q8338
P1303
Q34379 Q502895
USER
How many musical instruments are played by more number of people than trumpet ?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q8338
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?l ) WHERE { ?m property:P1303 ?b . ?b rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { resource:Q8338 property:P1303 ?y . ?y rdf:type ontology:Q34379 } } . FILTER ( ?l > ?z ) }
trumpet
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity trumpet
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?l ) WHERE { ?m property:instrument ?b . ?b rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { resource:trumpet property:instrument ?y . ?y rdf:type ontology:musical_instrument } } . FILTER ( ?l > ?z ) }
[]
musical instrument common name
SYSTEM
4
Q5994 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q8338
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?l ) WHERE { ?m property:P1303 ?b . ?b rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { resource:Q8338 property:P1303 ?y . ?y rdf:type ontology:Q34379 } } . FILTER ( ?l > ?z ) }
piano violin organ drum kit
4
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity trumpet
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?l ) WHERE { ?m property:instrument ?b . ?b rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { resource:trumpet property:instrument ?y . ?y rdf:type ontology:musical_instrument } } . FILTER ( ?l > ?z ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q838948 Q15324 Q15709879
USER
Which artwork series express approximately 2 works of art or bodies of water ?
(c(Q15709879),P180,c(Q838948)|c(Q15324))
action approx
action union
action find_tuple_counts
relation P180
type Q15709879
type Q838948
action find_tuple_counts
relation P180
type Q15709879
type Q15324
value 2
[{'concept': 'Q15709879'}, 'P180', [{'concept': 'Q838948'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) ?e WHERE { { ?e property:P180 ?z . ?z rdf:type ontology:Q838948 . ?e rdf:type ontology:Q15709879 } UNION { ?e property:P180 ?z . ?e rdf:type ontology:Q15709879 . ?z rdf:type ontology:Q15324 } } GROUP BY ?e } . FILTER ( ?a = 2 ) }
action approx
action union
action find_tuple_counts
relation depicts
type artwork series
type work of art
action find_tuple_counts
relation depicts
type artwork series
type body of water
value 2
[{'concept': 'artwork series'}, 'depicts', [{'concept': 'work of art'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) ?e WHERE { { ?e property:depicts ?z . ?z rdf:type ontology:work_of_art . ?e rdf:type ontology:artwork_series } UNION { ?e property:depicts ?z . ?e rdf:type ontology:artwork_series . ?z rdf:type ontology:body_of_water } } GROUP BY ?e } . FILTER ( ?a = 2 ) }
[]
work of art body of water artwork series
Q7729430 Q669994 Q7263012
SYSTEM
The Death of General Warren at the Battle of Bunker's Hill, June 17, 1775, Isle of the Dead, Pygmalion and the Image series
Q7729430 Q217796 Q669994 Q7263012
(c(Q15709879),P180,c(Q838948)|c(Q15324))
action approx
action union
action find_tuple_counts
relation P180
type Q15709879
type Q838948
action find_tuple_counts
relation P180
type Q15709879
type Q15324
value 2
[ANSWERS] express approximately 2 works of art or bodies of water
[{'concept': 'Q15709879'}, 'P180', [{'concept': 'Q838948'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) ?e WHERE { { ?e property:P180 ?z . ?z rdf:type ontology:Q838948 . ?e rdf:type ontology:Q15709879 } UNION { ?e property:P180 ?z . ?e rdf:type ontology:Q15709879 . ?z rdf:type ontology:Q15324 } } GROUP BY ?e } . FILTER ( ?a = 2 ) }
The Death of General Warren at the Battle of Bunker's Hill, June 17, 1775 Lewis chessmen Isle of the Dead Pygmalion and the Image series
The Death of General Warren at the Battle of Bunker's Hill, June 17, 1775, Isle of the Dead and Pygmalion and the Image series express approximately 2 works of art or bodies of water
The Death of General Warren at the Battle of Bunker's Hill, June 17, 1775 Isle of the Dead Pygmalion and the Image series
action approx
action union
action find_tuple_counts
relation depicts
type artwork series
type work of art
action find_tuple_counts
relation depicts
type artwork series
type body of water
value 2
[{'concept': 'artwork series'}, 'depicts', [{'concept': 'work of art'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) ?e WHERE { { ?e property:depicts ?z . ?z rdf:type ontology:work_of_art . ?e rdf:type ontology:artwork_series } UNION { ?e property:depicts ?z . ?e rdf:type ontology:artwork_series . ?z rdf:type ontology:body_of_water } } GROUP BY ?e } . FILTER ( ?a = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3083829 Q3358507
P19
Q56061
USER
Which administrative territories were Ousmane Diarra or François Antoine Vizzavona born at ?
OR((Q3358507,P19,c(Q56061)), (Q3083829,P19,c(Q56061)))
action filter_type
action union
action find
entity Q3358507
relation P19
action find
entity Q3083829
relation P19
type Q56061
{'OR': [['Q3358507', 'P19', {'concept': 'Q56061'}], ['Q3083829', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q3358507 property:P19 ?b } UNION { resource:Q3083829 property:P19 ?b } } . ?b rdf:type ontology:Q56061 }
François Antoine Vizzavona Ousmane Diarra
action filter_type
action union
action find
entity Ousmane Diarra
relation place of birth
action find
entity François Antoine Vizzavona
relation place of birth
type administrative territorial entity
{'OR': [['Ousmane Diarra', 'place of birth', {'concept': 'administrative territorial entity'}], ['François Antoine Vizzavona', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Ousmane_Diarra property:place_of_birth ?b } UNION { resource:François_Antoine_Vizzavona property:place_of_birth ?b } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3718 Q220
SYSTEM
Dakar, Rome
Q3718 Q220
OR((Q3358507,P19,c(Q56061)), (Q3083829,P19,c(Q56061)))
action filter_type
action union
action find
entity Q3358507
relation P19
action find
entity Q3083829
relation P19
type Q56061
Ousmane Diarra or François Antoine Vizzavona were born in [ANSWERS]
{'OR': [['Q3358507', 'P19', {'concept': 'Q56061'}], ['Q3083829', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q3358507 property:P19 ?b } UNION { resource:Q3083829 property:P19 ?b } } . ?b rdf:type ontology:Q56061 }
Dakar Rome
Ousmane Diarra or François Antoine Vizzavona were born in Dakar and Rome
Dakar Rome
action filter_type
action union
action find
entity Ousmane Diarra
relation place of birth
action find
entity François Antoine Vizzavona
relation place of birth
type administrative territorial entity
{'OR': [['Ousmane Diarra', 'place of birth', {'concept': 'administrative territorial entity'}], ['François Antoine Vizzavona', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Ousmane_Diarra property:place_of_birth ?b } UNION { resource:François_Antoine_Vizzavona property:place_of_birth ?b } } . ?b rdf:type ontology:administrative_territorial_entity }
[]