Simple Question (Direct)
Simple Question
Q3124294
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Gérard Sandoz ?
(Q3124294,P27,c(Q15617994))
action filter_type
action find
entity Q3124294
relation P27
type Q15617994
['Q3124294', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q3124294 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
Gérard Sandoz
action filter_type
action find
entity Gérard Sandoz
relation country of citizenship
type designation for an administrative territorial entity
['Gérard Sandoz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Gérard_Sandoz property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3124294,P27,c(Q15617994))
action filter_type
action find
entity Q3124294
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Gérard Sandoz
['Q3124294', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q3124294 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
France
France is the country of citizenship of Gérard Sandoz
France
action filter_type
action find
entity Gérard Sandoz
relation country of citizenship
type designation for an administrative territorial entity
['Gérard Sandoz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Gérard_Sandoz property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3124294
P161
Q838948
USER
Which work of art does that person star in ?
(c(Q838948),P161,Q142)
action filter_type
action find_reverse
entity Q3124294
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q142']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q838948 . ?c property:P161 resource:Q3124294 }
Gérard Sandoz
action filter_type
action find_reverse
entity Gérard Sandoz
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'France']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:work_of_art . ?c property:cast_member resource:Gérard_Sandoz }
[]
work of art
Q3324555
SYSTEM
Mortel Transfert
Q3324555
(c(Q838948),P161,Q142)
action filter_type
action find_reverse
entity Q3124294
relation P161
type Q838948
That person stars [ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q142']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q838948 . ?c property:P161 resource:Q3124294 }
Mortel Transfert
That person stars Mortel Transfert
Mortel Transfert
action filter_type
action find_reverse
entity Gérard Sandoz
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'France']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:work_of_art . ?c property:cast_member resource:Gérard_Sandoz }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P161
Q502895
USER
How many people are in that work of art ?
(Q3324555,P161,c(Q502895))
action count
action filter_type
action find
entity Q3324555
relation P161
type Q502895
['Q3324555', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:Q3324555 property:P161 ?s . ?s rdf:type ontology:Q502895 }
action count
action filter_type
action find
entity Mortel Transfert
relation cast member
type common name
['Mortel Transfert', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:Mortel_Transfert property:cast_member ?s . ?s rdf:type ontology:common_name }
[]
common name
SYSTEM
12
Q3124294 Q690283 Q462147 Q1187592 Q2602323 Q451251 Q2508610 Q1620213 Q299968 Q441684 Q3168991 Q1723836
(Q3324555,P161,c(Q502895))
action count
action filter_type
action find
entity Q3324555
relation P161
type Q502895
[ANSWER]
['Q3324555', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:Q3324555 property:P161 ?s . ?s rdf:type ontology:Q502895 }
Gérard Sandoz Jean-Hugues Anglade Hélène de Fougerolles Denis Podalydès Yves Rénier Ovidie Valentina Sauca Estelle Desanges Miki Manojlović Catherine Mouchet Jean-Pierre Becker Robert Hirsch
12
action count
action filter_type
action find
entity Mortel Transfert
relation cast member
type common name
['Mortel Transfert', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:Mortel_Transfert property:cast_member ?s . ?s rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P194
Q11204 Q35749 Q15617994
USER
Which administrative territories have max number of legislatures and parliaments as their representative body ?
(c(Q15617994),P194,c(Q11204)|c(Q35749))
action argmax
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q35749
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) ?v WHERE { { ?v property:P194 ?h . ?h rdf:type ontology:Q11204 . ?v rdf:type ontology:Q15617994 } UNION { ?v property:P194 ?h . ?v rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q35749 } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) ?f WHERE { { ?s rdf:type ontology:Q11204 . ?f rdf:type ontology:Q15617994 . ?f property:P194 ?s } UNION { ?f property:P194 ?s . ?f rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q35749 } } GROUP BY ?f } . FILTER ( ?m = ?y ) }
action argmax
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'parliament'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) ?v WHERE { { ?v property:legislative_body ?h . ?h rdf:type ontology:legislature . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?v property:legislative_body ?h . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:parliament } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) ?f WHERE { { ?s rdf:type ontology:legislature . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f property:legislative_body ?s } UNION { ?f property:legislative_body ?s . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:parliament } } GROUP BY ?f } . FILTER ( ?m = ?y ) }
[]
legislature parliament designation for an administrative territorial entity
Q948
SYSTEM
Tunisia
Q948
(c(Q15617994),P194,c(Q11204)|c(Q35749))
action argmax
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q35749
[ANSWER] have max number of legislatures and parliaments as their representative body
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) ?v WHERE { { ?v property:P194 ?h . ?h rdf:type ontology:Q11204 . ?v rdf:type ontology:Q15617994 } UNION { ?v property:P194 ?h . ?v rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q35749 } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) ?f WHERE { { ?s rdf:type ontology:Q11204 . ?f rdf:type ontology:Q15617994 . ?f property:P194 ?s } UNION { ?f property:P194 ?s . ?f rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q35749 } } GROUP BY ?f } . FILTER ( ?m = ?y ) }
Tunisia
Tunisia have max number of legislatures and parliaments as their representative body
Tunisia
action argmax
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'parliament'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) ?v WHERE { { ?v property:legislative_body ?h . ?h rdf:type ontology:legislature . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?v property:legislative_body ?h . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:parliament } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) ?f WHERE { { ?s rdf:type ontology:legislature . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f property:legislative_body ?s } UNION { ?f property:legislative_body ?s . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:parliament } } GROUP BY ?f } . FILTER ( ?m = ?y ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories are known to have diplomatic connections with atmost 13 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 13
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?f ) WHERE { ?i rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 . ?i property:P530 ?e } GROUP BY ?i } . FILTER ( ?f <= 13 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 13
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?f ) WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?e } GROUP BY ?i } . FILTER ( ?f <= 13 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
148
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 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 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 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 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 13
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?f ) WHERE { ?i rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 . ?i property:P530 ?e } GROUP BY ?i } . FILTER ( ?f <= 13 ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia 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 Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco 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 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 Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
148
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 13
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?f ) WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?e } GROUP BY ?i } . FILTER ( ?f <= 13 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q948
P495
Q838948
USER
Which works of art have Tunisia as their place of origin ?
(c(Q838948),P495,Q948)
action filter_type
action find_reverse
entity Q948
relation P495
type Q838948
[{'concept': 'Q838948'}, 'P495', 'Q948']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q838948 . ?k property:P495 resource:Q948 }
Tunisia
action filter_type
action find_reverse
entity Tunisia
relation country of origin
type work of art
[{'concept': 'work of art'}, 'country of origin', 'Tunisia']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:work_of_art . ?k property:country_of_origin resource:Tunisia }
[]
work of art
Q3097911 Q1305161 Q1131452
SYSTEM
Halfaouine: Child of the Terraces, A Summer in La Goulette, Moolaadé
Q7857829 Q543377 Q21646675 Q21883980 Q3214223 Q3235272 Q4659528 Q5792297 Q1985728 Q6455919 Q3012352 Q5351374 Q16642088 Q20395217 Q1131452 Q26825486 Q5458879 Q3104790 Q5274248 Q2916837 Q22295801 Q3232052 Q4659372 Q6403625 Q6507023 Q3453928 Q3097911 Q1305161 Q8387637 Q2364819 Q5724473 Q5351416 Q3552939 Q5026009 Q16208688 Q3542114 Q3358237 Q7699638 Q7460677 Q3201075 Q16127418
(c(Q838948),P495,Q948)
action filter_type
action find_reverse
entity Q948
relation P495
type Q838948
[ANSWERS] have Tunisia as their place of origin
[{'concept': 'Q838948'}, 'P495', 'Q948']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q838948 . ?k property:P495 resource:Q948 }
Twenty Years of African Cinema Talfaza Jaya Le magique Layla, ma raison The TV Is Coming Golden Horseshoes A Simple Story Le Poisson noyé Man of Ashes L'enfant Roi Red Satin El Haimoune Tunisians Stories The Girl from Carthage Moolaadé The Flower of Aleppo Fleur de pierre Gharsallah, la semence de Dieu Horses of God Le Chant des mariées Hedi Les Deux Souris blanches A Season Between Heaven and Hell Ki l'ambouba Le Guerbag Ryeh Halfaouine: Child of the Terraces A Summer in La Goulette Sama Making Of Bedwin Hacker El Icha VHS Kahloucha Camera de Afrique Bastardo Bent Familia Ouled Lenine Tendid Shadow of the Earth Kène ya ma kène... Zohra
Halfaouine: Child of the Terraces, A Summer in La Goulette and Moolaadé have Tunisia as their place of origin
Halfaouine: Child of the Terraces A Summer in La Goulette Moolaadé
action filter_type
action find_reverse
entity Tunisia
relation country of origin
type work of art
[{'concept': 'work of art'}, 'country of origin', 'Tunisia']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:work_of_art . ?k property:country_of_origin resource:Tunisia }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1305161
P57
Q502895
USER
Who directed that work of art ?
(Q1305161,P57,c(Q502895))
action filter_type
action find
entity Q1305161
relation P57
type Q502895
['Q1305161', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q1305161 property:P57 ?b . ?b rdf:type ontology:Q502895 }
A Summer in La Goulette
action filter_type
action find
entity A Summer in La Goulette
relation director
type common name
['A Summer in La Goulette', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:A_Summer_in_La_Goulette property:director ?b . ?b rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1305161
SYSTEM
Did you mean A Summer in La Goulette ?
Q3097911 Q1305161 Q1131452
(Q3097911,P57,c(Q502895)) (Q1305161,P57,c(Q502895)) (Q1131452,P57,c(Q502895))
[ANSWER]
['Q3097911', 'P57', {'concept': 'Q502895'}] ['Q1305161', 'P57', {'concept': 'Q502895'}] ['Q1131452', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q1305161 property:P57 ?b . ?b rdf:type ontology:Q502895 }
Halfaouine: Child of the Terraces A Summer in La Goulette Moolaadé
Did you mean A Summer in La Goulette ?
A Summer in La Goulette
['Halfaouine: Child of the Terraces', 'director', {'concept': 'common name'}] ['A Summer in La Goulette', 'director', {'concept': 'common name'}] ['Moolaadé', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:A_Summer_in_La_Goulette property:director ?b . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1305161,P57,c(Q502895))
['Q1305161', 'P57', {'concept': 'Q502895'}]
['A Summer in La Goulette', 'director', {'concept': 'common name'}]
[]
Q3092707
SYSTEM
Férid Boughedir
Q3092707
(Q1305161,P57,c(Q502895))
action filter_type
action find
entity Q1305161
relation P57
type Q502895
[ANSWER] directed that work of art
['Q1305161', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q1305161 property:P57 ?b . ?b rdf:type ontology:Q502895 }
Férid Boughedir
Férid Boughedir directed that work of art
Férid Boughedir
action filter_type
action find
entity A Summer in La Goulette
relation director
type common name
['A Summer in La Goulette', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:A_Summer_in_La_Goulette property:director ?b . ?b rdf:type ontology:common_name }
[]