Simple Question (Direct)
Simple Question
Q3223883
P161
Q502895
USER
Which people starred in The Milk of Human Kindness ?
(Q3223883,P161,c(Q502895))
action filter_type
action find
entity Q3223883
relation P161
type Q502895
['Q3223883', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q3223883 property:P161 ?b . ?b rdf:type ontology:Q502895 }
The Milk of Human Kindness
action filter_type
action find
entity The Milk of Human Kindness
relation cast member
type common name
['The Milk of Human Kindness', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:The_Milk_of_Human_Kindness property:cast_member ?b . ?b rdf:type ontology:common_name }
[]
common name
Q241437 Q106544 Q171530
SYSTEM
Yolande Moreau, Claude Brasseur, Patrick Bruel
Q3158341 Q171530 Q3293096 Q3295220 Q241437 Q289040 Q232470 Q1758568 Q983020 Q543814 Q106544 Q271481
(Q3223883,P161,c(Q502895))
action filter_type
action find
entity Q3223883
relation P161
type Q502895
[ANSWERS] starred in The Milk of Human Kindness
['Q3223883', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q3223883 property:P161 ?b . ?b rdf:type ontology:Q502895 }
Jacques Boudet Patrick Bruel Marilyne Canto Marthe Villalonga Yolande Moreau Mathilde Seigner Valeria Bruni Tedeschi Antoine Chappey Olivier Gourmet Sergi López Claude Brasseur Dominique Blanc
Yolande Moreau, Claude Brasseur and Patrick Bruel starred in The Milk of Human Kindness
Yolande Moreau Claude Brasseur Patrick Bruel
action filter_type
action find
entity The Milk of Human Kindness
relation cast member
type common name
['The Milk of Human Kindness', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:The_Milk_of_Human_Kindness property:cast_member ?b . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q241437 Q106544 Q171530
P106
Q12737077
USER
What are the job of those people ?
(Q241437,P106,c(Q12737077)) (Q106544,P106,c(Q12737077)) (Q171530,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
['Q241437', 'P106', {'concept': 'Q12737077'}] ['Q106544', 'P106', {'concept': 'Q12737077'}] ['Q171530', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?n property:P106 ?h . ?h rdf:type ontology:Q12737077 . VALUES ( ?n ) { ( resource:Q3158341 ) ( resource:Q171530 ) ( resource:Q3293096 ) } }
Yolande Moreau Claude Brasseur Patrick Bruel
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Yolande Moreau', 'occupation', {'concept': 'occupation'}] ['Claude Brasseur', 'occupation', {'concept': 'occupation'}] ['Patrick Bruel', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?n property:occupation ?h . ?h rdf:type ontology:occupation . VALUES ( ?n ) { ( resource:Jacques_Boudet ) ( resource:Patrick_Bruel ) ( resource:Marilyne_Canto ) } }
[]
occupation
Q33999 Q245068 Q15958185
SYSTEM
actor, comedian, racecar driver
Q33999 Q245068 Q15958185 Q33999 Q639669 Q33999 Q488205 Q177220
(Q241437,P106,c(Q12737077)) (Q106544,P106,c(Q12737077)) (Q171530,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
The job of those people are the [ANSWERS]
['Q241437', 'P106', {'concept': 'Q12737077'}] ['Q106544', 'P106', {'concept': 'Q12737077'}] ['Q171530', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?n property:P106 ?h . ?h rdf:type ontology:Q12737077 . VALUES ( ?n ) { ( resource:Q3158341 ) ( resource:Q171530 ) ( resource:Q3293096 ) } }
actor comedian racecar driver actor musician actor singer-songwriter singer
The job of those people are the actor, comedian and racecar driver
actor comedian racecar driver
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Yolande Moreau', 'occupation', {'concept': 'occupation'}] ['Claude Brasseur', 'occupation', {'concept': 'occupation'}] ['Patrick Bruel', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?n property:occupation ?h . ?h rdf:type ontology:occupation . VALUES ( ?n ) { ( resource:Jacques_Boudet ) ( resource:Patrick_Bruel ) ( resource:Marilyne_Canto ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3223883
P57
Q502895
USER
Which person served as the directed of The Milk of Human Kindness ?
(Q3223883,P57,c(Q502895))
action filter_type
action find
entity Q3223883
relation P57
type Q502895
['Q3223883', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q3223883 property:P57 ?s . ?s rdf:type ontology:Q502895 }
The Milk of Human Kindness
action filter_type
action find
entity The Milk of Human Kindness
relation director
type common name
['The Milk of Human Kindness', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:The_Milk_of_Human_Kindness property:director ?s . ?s rdf:type ontology:common_name }
[]
common name
Q3035037
SYSTEM
Dominique Cabrera
Q3035037
(Q3223883,P57,c(Q502895))
action filter_type
action find
entity Q3223883
relation P57
type Q502895
[ANSWER] served as the directed of The Milk of Human Kindness
['Q3223883', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q3223883 property:P57 ?s . ?s rdf:type ontology:Q502895 }
Dominique Cabrera
Dominique Cabrera served as the directed of The Milk of Human Kindness
Dominique Cabrera
action filter_type
action find
entity The Milk of Human Kindness
relation director
type common name
['The Milk of Human Kindness', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:The_Milk_of_Human_Kindness property:director ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q646077
Q502895
USER
And how about Belly?
(Q646077,P57,c(Q502895))
action filter_type
action find
entity Q646077
relation P57
type Q502895
['Q646077', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q646077 property:P57 ?h . ?h rdf:type ontology:Q502895 }
Belly
action filter_type
action find
entity Belly
relation director
type common name
['Belly', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Belly property:director ?h . ?h rdf:type ontology:common_name }
[]
common name
Q572533
SYSTEM
Hype Williams
Q572533
(Q646077,P57,c(Q502895))
action filter_type
action find
entity Q646077
relation P57
type Q502895
[ANSWER]
['Q646077', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q646077 property:P57 ?h . ?h rdf:type ontology:Q502895 }
Hype Williams
Hype Williams
action filter_type
action find
entity Belly
relation director
type common name
['Belly', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Belly property:director ?h . ?h rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3441597 Q106544
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Claude Brasseur or Ronan Larvor ?
OR((Q106544,P27,c(Q15617994)), (Q3441597,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q106544
relation P27
action find
entity Q3441597
relation P27
type Q15617994
{'OR': [['Q106544', 'P27', {'concept': 'Q15617994'}], ['Q3441597', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?v ) { ( resource:Q3441597 ) ( resource:Q106544 ) } . ?v property:P27 ?g } . ?g rdf:type ontology:Q15617994 }
Ronan Larvor Claude Brasseur
action filter_type
action union
action find
entity Claude Brasseur
relation country of citizenship
action find
entity Ronan Larvor
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Claude Brasseur', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ronan Larvor', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?v ) { ( resource:Ronan_Larvor ) ( resource:Claude_Brasseur ) } . ?v property:country_of_citizenship ?g } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
OR((Q106544,P27,c(Q15617994)), (Q3441597,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q106544
relation P27
action find
entity Q3441597
relation P27
type Q15617994
[ANSWER] is the countries of citizenship of Claude Brasseur or Ronan Larvor
{'OR': [['Q106544', 'P27', {'concept': 'Q15617994'}], ['Q3441597', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?v ) { ( resource:Q3441597 ) ( resource:Q106544 ) } . ?v property:P27 ?g } . ?g rdf:type ontology:Q15617994 }
France
France is the countries of citizenship of Claude Brasseur or Ronan Larvor
France
action filter_type
action union
action find
entity Claude Brasseur
relation country of citizenship
action find
entity Ronan Larvor
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Claude Brasseur', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ronan Larvor', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?v ) { ( resource:Ronan_Larvor ) ( resource:Claude_Brasseur ) } . ?v property:country_of_citizenship ?g } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q55127 Q3441597
P47 P27
Q15617994
USER
Which administrative territories do Ronan Larvor belong to or share border with Teora ?
OR((Q3441597,P27,c(Q15617994)), (Q55127,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q3441597
relation P27
action find
entity Q55127
relation P47
type Q15617994
{'OR': [['Q3441597', 'P27', {'concept': 'Q15617994'}], ['Q55127', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q3441597 property:P27 ?f } UNION { resource:Q55127 property:P47 ?f } } . ?f rdf:type ontology:Q15617994 }
Teora Ronan Larvor
action filter_type
action union
action find
entity Ronan Larvor
relation country of citizenship
action find
entity Teora
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Ronan Larvor', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Teora', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Ronan_Larvor property:country_of_citizenship ?f } UNION { resource:Teora property:shares_border_with ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q55031 Q80829 Q55014 Q55048 Q55070
SYSTEM
France, Conza della Campania, Castelnuovo di Conza, Caposele, Lioni, Morra De Sanctis
Q142 Q55031 Q80829 Q55014 Q55048 Q55070
OR((Q3441597,P27,c(Q15617994)), (Q55127,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q3441597
relation P27
action find
entity Q55127
relation P47
type Q15617994
Ronan Larvor belong to [ANSWERS]
{'OR': [['Q3441597', 'P27', {'concept': 'Q15617994'}], ['Q55127', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q3441597 property:P27 ?f } UNION { resource:Q55127 property:P47 ?f } } . ?f rdf:type ontology:Q15617994 }
France Conza della Campania Castelnuovo di Conza Caposele Lioni Morra De Sanctis
Ronan Larvor belong to France, Conza della Campania, Castelnuovo di Conza, Caposele, Lioni and Morra De Sanctis
France Conza della Campania Castelnuovo di Conza Caposele Lioni Morra De Sanctis
action filter_type
action union
action find
entity Ronan Larvor
relation country of citizenship
action find
entity Teora
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Ronan Larvor', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Teora', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Ronan_Larvor property:country_of_citizenship ?f } UNION { resource:Teora property:shares_border_with ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have tactful political relations with max number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?v ) { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?y ) WHERE { ?o property:P530 ?s . ?o rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?o } } . { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?q ) WHERE { ?x property:P530 ?c . ?x rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?q = ?v ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?v ) { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?y ) WHERE { ?o property:diplomatic_relation ?s . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } } . { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?q ) WHERE { ?x property:diplomatic_relation ?c . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?q = ?v ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] have tactful political relations with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?v ) { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?y ) WHERE { ?o property:P530 ?s . ?o rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?o } } . { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?q ) WHERE { ?x property:P530 ?c . ?x rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?q = ?v ) }
Georgia
Georgia have tactful political relations with max number of administrative territories
Georgia
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?v ) { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?y ) WHERE { ?o property:diplomatic_relation ?s . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } } . { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?q ) WHERE { ?x property:diplomatic_relation ?c . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?q = ?v ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q230 Q183
P530
Q1048835
USER
Does Germany have diplomatic relationships with that administrative territory ?
(Q230,P530,Q183)
action is_in
entity Q183
action find
entity Q230
relation P530
['Q230', 'P530', 'Q183']
ASK WHERE { resource:Q230 property:P530 resource:Q183 }
Georgia Germany
action is_in
entity Germany
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Georgia property:diplomatic_relation resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q230,P530,Q183)
action is_in
entity Q183
action find
entity Q230
relation P530
[ANSWER]
['Q230', 'P530', 'Q183']
ASK WHERE { resource:Q230 property:P530 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Georgia property:diplomatic_relation resource:Germany }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q230
P17
Q15617994
USER
Which administrative territory is that one situated in ?
action filter_type
action find
entity Q230
relation P17
type Q15617994
SELECT DISTINCT ?i WHERE { resource:Q230 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Georgia
action filter_type
action find
entity Georgia
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?i WHERE { resource:Georgia property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
action filter_type
action find
entity Q230
relation P17
type Q15617994
That one is situated in [ANSWER]
SELECT DISTINCT ?i WHERE { resource:Q230 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Georgia
That one is situated in Georgia
Georgia
action filter_type
action find
entity Georgia
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?i WHERE { resource:Georgia property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]