Simple Question (Direct)
Simple Question
Q387363
P47
Q20667921
USER
Which french administrative divisions have a shared border with Thézan-lès-Béziers ?
(Q387363,P47,c(Q20667921))
action filter_type
action find
entity Q387363
relation P47
type Q20667921
['Q387363', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q387363 property:P47 ?g . ?g rdf:type ontology:Q20667921 }
Thézan-lès-Béziers
action filter_type
action find
entity Thézan-lès-Béziers
relation shares border with
type type of french administrative division
['Thézan-lès-Béziers', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Thézan-lès-Béziers property:shares_border_with ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q239986 Q1072594 Q241602
SYSTEM
Murviel-lès-Béziers, Cazouls-lès-Béziers, Corneilhan
Q1108029 Q243611 Q239986 Q1072594 Q1149154 Q241602
(Q387363,P47,c(Q20667921))
action filter_type
action find
entity Q387363
relation P47
type Q20667921
[ANSWERS] have a shared border with Thézan-lès-Béziers
['Q387363', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q387363 property:P47 ?g . ?g rdf:type ontology:Q20667921 }
Pailhès Maraussan Murviel-lès-Béziers Cazouls-lès-Béziers Lignan-sur-Orb Corneilhan
Murviel-lès-Béziers, Cazouls-lès-Béziers and Corneilhan have a shared border with Thézan-lès-Béziers
Murviel-lès-Béziers Cazouls-lès-Béziers Corneilhan
action filter_type
action find
entity Thézan-lès-Béziers
relation shares border with
type type of french administrative division
['Thézan-lès-Béziers', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Thézan-lès-Béziers property:shares_border_with ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q239986 Q1072594 Q241602
P47
Q20667921
USER
Which french administrative divisions are next to the border of Murviel-lès-Béziers, Cazouls-lès-Béziers and Corneilhan ?
(c(Q20667921),P47,Q239986) (c(Q20667921),P47,Q1072594) (c(Q20667921),P47,Q241602)
action union
action filter_type
action find
entity Q239986
relation P47
type Q20667921
action filter_type
action find
entity Q1072594
relation P47
type Q20667921
action filter_type
action find
entity Q241602
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q239986'] [{'concept': 'Q20667921'}, 'P47', 'Q1072594'] [{'concept': 'Q20667921'}, 'P47', 'Q241602']
SELECT DISTINCT ?j WHERE { VALUES ( ?r ) { ( resource:Q239986 ) ( resource:Q1072594 ) } . ?r property:P47 ?j }
Murviel-lès-Béziers Cazouls-lès-Béziers Corneilhan
action union
action filter_type
action find
entity Murviel-lès-Béziers
relation shares border with
type type of french administrative division
action filter_type
action find
entity Cazouls-lès-Béziers
relation shares border with
type type of french administrative division
action filter_type
action find
entity Corneilhan
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Murviel-lès-Béziers'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Cazouls-lès-Béziers'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Corneilhan']
SELECT DISTINCT ?j WHERE { VALUES ( ?r ) { ( resource:Murviel-lès-Béziers ) ( resource:Cazouls-lès-Béziers ) } . ?r property:shares_border_with ?j }
[]
type of french administrative division
Q174019 Q239986 Q269847
SYSTEM
Béziers, Murviel-lès-Béziers, Cabrerolles
Q627727 Q387363 Q275399 Q1148475 Q1072695 Q1108029 Q269847 Q244801 Q1072594 Q627727 Q387363 Q1073226 Q243611 Q270256 Q239986 Q275731 Q387363 Q1149154 Q270136 Q1108029 Q174019 Q921178
(c(Q20667921),P47,Q239986) (c(Q20667921),P47,Q1072594) (c(Q20667921),P47,Q241602)
action union
action filter_type
action find
entity Q239986
relation P47
type Q20667921
action filter_type
action find
entity Q1072594
relation P47
type Q20667921
action filter_type
action find
entity Q241602
relation P47
type Q20667921
[ANSWERS] are next to the border of Murviel-lès-Béziers, Cazouls-lès-Béziers and Corneilhan
[{'concept': 'Q20667921'}, 'P47', 'Q239986'] [{'concept': 'Q20667921'}, 'P47', 'Q1072594'] [{'concept': 'Q20667921'}, 'P47', 'Q241602']
SELECT DISTINCT ?j WHERE { VALUES ( ?r ) { ( resource:Q239986 ) ( resource:Q1072594 ) } . ?r property:P47 ?j }
Cessenon-sur-Orb Thézan-lès-Béziers Saint-Geniès-de-Fontedit Saint-Nazaire-de-Ladarez Causses-et-Veyran Pailhès Cabrerolles Autignac Cazouls-lès-Béziers Cessenon-sur-Orb Thézan-lès-Béziers Cazedarnes Maraussan Puisserguier Murviel-lès-Béziers Maureilhan Thézan-lès-Béziers Lignan-sur-Orb Puimisson Pailhès Béziers Lieuran-lès-Béziers
Béziers, Murviel-lès-Béziers and Cabrerolles are next to the border of Murviel-lès-Béziers, Cazouls-lès-Béziers and Corneilhan
Béziers Murviel-lès-Béziers Cabrerolles
action union
action filter_type
action find
entity Murviel-lès-Béziers
relation shares border with
type type of french administrative division
action filter_type
action find
entity Cazouls-lès-Béziers
relation shares border with
type type of french administrative division
action filter_type
action find
entity Corneilhan
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Murviel-lès-Béziers'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Cazouls-lès-Béziers'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Corneilhan']
SELECT DISTINCT ?j WHERE { VALUES ( ?r ) { ( resource:Murviel-lès-Béziers ) ( resource:Cazouls-lès-Béziers ) } . ?r property:shares_border_with ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1072594
P17
Q15617994
USER
Which administrative territory is Cazouls-lès-Béziers located in ?
(Q1072594,P17,c(Q15617994))
action filter_type
action find
entity Q1072594
relation P17
type Q15617994
['Q1072594', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q1072594 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Cazouls-lès-Béziers
action filter_type
action find
entity Cazouls-lès-Béziers
relation country
type designation for an administrative territorial entity
['Cazouls-lès-Béziers', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Cazouls-lès-Béziers property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q1072594,P17,c(Q15617994))
action filter_type
action find
entity Q1072594
relation P17
type Q15617994
Cazouls-lès-Béziers is located in [ANSWER]
['Q1072594', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q1072594 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
France
Cazouls-lès-Béziers is located in France
France
action filter_type
action find
entity Cazouls-lès-Béziers
relation country
type designation for an administrative territorial entity
['Cazouls-lès-Béziers', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Cazouls-lès-Béziers property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with atmost 25 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 25
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?y ) WHERE { ?s rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 . ?i property:P530 ?s } GROUP BY ?s } . FILTER ( ?y <= 25 ) }
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 25
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?y ) WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?s } GROUP BY ?s } . FILTER ( ?y <= 25 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q142
SYSTEM
Georgia, Netherlands, France
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 25
[ANSWERS] have diplomatic relationships with atmost 25 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?y ) WHERE { ?s rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 . ?i property:P530 ?s } GROUP BY ?s } . FILTER ( ?y <= 25 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia 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 Nauru Chile Palau 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 Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
Georgia, Netherlands and France have diplomatic relationships with atmost 25 administrative territories
Georgia Netherlands France
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 25
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?y ) WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?s } GROUP BY ?s } . FILTER ( ?y <= 25 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q778641 Q174019
P47
Q20667921
USER
Which french administrative divisions share the border with Béziers or Saint-Paul-sur-Isère ?
OR((Q174019,P47,c(Q20667921)), (Q778641,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q174019
relation P47
action find
entity Q778641
relation P47
type Q20667921
{'OR': [['Q174019', 'P47', {'concept': 'Q20667921'}], ['Q778641', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?t WHERE { { ?q property:P47 ?t . VALUES ( ?q ) { ( resource:Q174019 ) ( resource:Q778641 ) } } . ?t rdf:type ontology:Q20667921 }
Saint-Paul-sur-Isère Béziers
action filter_type
action union
action find
entity Béziers
relation shares border with
action find
entity Saint-Paul-sur-Isère
relation shares border with
type type of french administrative division
{'OR': [['Béziers', 'shares border with', {'concept': 'type of french administrative division'}], ['Saint-Paul-sur-Isère', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?t WHERE { { ?q property:shares_border_with ?t . VALUES ( ?q ) { ( resource:Béziers ) ( resource:Saint-Paul-sur-Isère ) } } . ?t rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1214526 Q1072700 Q262131 Q241602 Q1222513 Q1148118 Q639920 Q968048 Q1073096 Q1150783
SYSTEM
Some of them are Notre-Dame-des-Millières, Boujan-sur-Libron, Vendres, Corneilhan, Bonvillard, Lespignan, Montblanc, Bassan, Servian, Montady
Q262131 Q921178 Q1072641 Q639920 Q655680 Q781720 Q968048 Q1214526 Q1214620 Q243611 Q1150783 Q1073096 Q1148118 Q681608 Q1072700 Q241602 Q940237 Q1222513 Q963252 Q1149154 Q1322772 Q767615 Q536061 Q275731 Q1333777
OR((Q174019,P47,c(Q20667921)), (Q778641,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q174019
relation P47
action find
entity Q778641
relation P47
type Q20667921
[ANSWERS] share the border with Béziers or Saint-Paul-sur-Isère
{'OR': [['Q174019', 'P47', {'concept': 'Q20667921'}], ['Q778641', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?t WHERE { { ?q property:P47 ?t . VALUES ( ?q ) { ( resource:Q174019 ) ( resource:Q778641 ) } } . ?t rdf:type ontology:Q20667921 }
Vendres Lieuran-lès-Béziers Colombiers Montblanc Cevins Sainte-Hélène-sur-Isère Bassan Notre-Dame-des-Millières Montsapey Maraussan Montady Servian Lespignan Esserts-Blay Boujan-sur-Libron Corneilhan Rognaix Bonvillard Cers Lignan-sur-Orb Villeneuve-lès-Béziers Monthion La Bâthie Maureilhan Sauvian
Notre-Dame-des-Millières, Boujan-sur-Libron, Vendres, Corneilhan, Bonvillard, Lespignan, Montblanc, Bassan, Servian and Montady share the border with Béziers or Saint-Paul-sur-Isère
Notre-Dame-des-Millières Boujan-sur-Libron Vendres Corneilhan Bonvillard Lespignan Montblanc Bassan Servian Montady
action filter_type
action union
action find
entity Béziers
relation shares border with
action find
entity Saint-Paul-sur-Isère
relation shares border with
type type of french administrative division
{'OR': [['Béziers', 'shares border with', {'concept': 'type of french administrative division'}], ['Saint-Paul-sur-Isère', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?t WHERE { { ?q property:shares_border_with ?t . VALUES ( ?q ) { ( resource:Béziers ) ( resource:Saint-Paul-sur-Isère ) } } . ?t rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P1313
Q12737077
USER
Which occupation is fulfilled by France ?
(Q142,P1313,c(Q12737077))
action filter_type
action find
entity Q142
relation P1313
type Q12737077
['Q142', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q142 property:P1313 ?h }
France
action filter_type
action find
entity France
relation office held by head of government
type occupation
['France', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:France property:office_held_by_head_of_government ?h }
[]
occupation
Q1587677
SYSTEM
Prime Minister of France
Q1587677
(Q142,P1313,c(Q12737077))
action filter_type
action find
entity Q142
relation P1313
type Q12737077
France [ANSWER] is fulfilled by France
['Q142', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q142 property:P1313 ?h }
Prime Minister of France
France Prime Minister of France is fulfilled by France
Prime Minister of France
action filter_type
action find
entity France
relation office held by head of government
type occupation
['France', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:France property:office_held_by_head_of_government ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1587677
P39
Q502895
USER
Who were responsible for occupying the position of that occupation ?
(c(Q502895),P39,Q1587677)
action filter_type
action find_reverse
entity Q1587677
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q1587677']
SELECT DISTINCT ?k WHERE { ?k property:P39 resource:Q1587677 . ?k rdf:type ontology:Q502895 }
Prime Minister of France
action filter_type
action find_reverse
entity Prime Minister of France
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Prime Minister of France']
SELECT DISTINCT ?k WHERE { ?k property:position_held resource:Prime_Minister_of_France . ?k rdf:type ontology:common_name }
[]
common name
Q2105 Q217070 Q312034
SYSTEM
Jacques Chirac, Laurent Fabius, Maurice Couve de Murville
Q298355 Q2105 Q271822 Q63263 Q217070 Q12946 Q12959 Q12940 Q166056 Q10287 Q296386 Q312034 Q156511 Q187099 Q230861 Q289149 Q215569 Q161076 Q455392 Q431074 Q131660 Q7711 Q101410 Q123062 Q2185 Q12957
(c(Q502895),P39,Q1587677)
action filter_type
action find_reverse
entity Q1587677
relation P39
type Q502895
[ANSWERS] were responsible for occupying the position of that occupation
[{'concept': 'Q502895'}, 'P39', 'Q1587677']
SELECT DISTINCT ?k WHERE { ?k property:P39 resource:Q1587677 . ?k rdf:type ontology:Q502895 }
Pierre Bérégovoy Jacques Chirac Pierre Messmer Jean-Pierre Raffarin Laurent Fabius Michel Rocard Édouard Balladur Jacques Chaban-Delmas Cardinal Mazarin Manuel Valls Michel Debré Maurice Couve de Murville Pierre Mauroy Lionel Jospin Édith Cresson Étienne François, duc de Choiseul Alain Juppé Paul Reynaud Louis Henri, Duke of Bourbon René Viviani Dominique de Villepin Jean-Marc Ayrault François Fillon Jacques Necker Georges Pompidou Raymond Barre
Jacques Chirac, Laurent Fabius and Maurice Couve de Murville were responsible for occupying the position of that occupation
Jacques Chirac Laurent Fabius Maurice Couve de Murville
action filter_type
action find_reverse
entity Prime Minister of France
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Prime Minister of France']
SELECT DISTINCT ?k WHERE { ?k property:position_held resource:Prime_Minister_of_France . ?k rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q11424
USER
Which films had their voice dubbing done by max number of people ?
(c(Q11424),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q11424
type Q502895
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?q ) WHERE { ?f property:P725 ?z . ?f rdf:type ontology:Q11424 . ?z rdf:type ontology:Q502895 } GROUP BY ?f } . FILTER ( ?q = ?k ) . { SELECT DISTINCT ( MAX ( ?j ) AS ?k ) { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?j ) WHERE { ?c property:P725 ?e . ?c rdf:type ontology:Q11424 . ?e rdf:type ontology:Q502895 } GROUP BY ?c } } }
action argmax
action find_tuple_counts
relation voice actor
type film
type common name
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?q ) WHERE { ?f property:voice_actor ?z . ?f rdf:type ontology:film . ?z rdf:type ontology:common_name } GROUP BY ?f } . FILTER ( ?q = ?k ) . { SELECT DISTINCT ( MAX ( ?j ) AS ?k ) { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?j ) WHERE { ?c property:voice_actor ?e . ?c rdf:type ontology:film . ?e rdf:type ontology:common_name } GROUP BY ?c } } }
[]
common name film
Q271189
SYSTEM
Hercules
Q271189
(c(Q11424),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q11424
type Q502895
[ANSWER] had their voice dubbing done by max number of people
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?q ) WHERE { ?f property:P725 ?z . ?f rdf:type ontology:Q11424 . ?z rdf:type ontology:Q502895 } GROUP BY ?f } . FILTER ( ?q = ?k ) . { SELECT DISTINCT ( MAX ( ?j ) AS ?k ) { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?j ) WHERE { ?c property:P725 ?e . ?c rdf:type ontology:Q11424 . ?e rdf:type ontology:Q502895 } GROUP BY ?c } } }
Hercules
Hercules had their voice dubbing done by max number of people
Hercules
action argmax
action find_tuple_counts
relation voice actor
type film
type common name
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?q ) WHERE { ?f property:voice_actor ?z . ?f rdf:type ontology:film . ?z rdf:type ontology:common_name } GROUP BY ?f } . FILTER ( ?q = ?k ) . { SELECT DISTINCT ( MAX ( ?j ) AS ?k ) { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?j ) WHERE { ?c property:voice_actor ?e . ?c rdf:type ontology:film . ?e rdf:type ontology:common_name } GROUP BY ?c } } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q271189 Q6017842
P800
Q502895
USER
Does Şükrü Meto have that film as a notable work ?
(Q6017842,P800,Q271189)
action is_in
entity Q6017842
action find
entity Q271189
relation P800
['Q6017842', 'P800', 'Q271189']
ASK WHERE { resource:Q271189 property:P800 resource:Q6017842 }
Hercules Şükrü Meto
action is_in
entity Şükrü Meto
action find
entity Hercules
relation notable work
['Şükrü Meto', 'notable work', 'Hercules']
ASK WHERE { resource:Hercules property:notable_work resource:Şükrü_Meto }
[]
common name
SYSTEM
NO
(Q6017842,P800,Q271189)
action is_in
entity Q6017842
action find
entity Q271189
relation P800
[ANSWER]
['Q6017842', 'P800', 'Q271189']
ASK WHERE { resource:Q271189 property:P800 resource:Q6017842 }
No
action is_in
entity Şükrü Meto
action find
entity Hercules
relation notable work
['Şükrü Meto', 'notable work', 'Hercules']
ASK WHERE { resource:Hercules property:notable_work resource:Şükrü_Meto }
[]