Simple Question (Direct)
Simple Question
Q3032174
P495
Q15617994
USER
Where did In Praise of Love originate ?
(Q3032174,P495,c(Q15617994))
action filter_type
action find
entity Q3032174
relation P495
type Q15617994
['Q3032174', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . resource:Q3032174 property:P495 ?s }
In Praise of Love
action filter_type
action find
entity In Praise of Love
relation country of origin
type designation for an administrative territorial entity
['In Praise of Love', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:In_Praise_of_Love property:country_of_origin ?s }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3032174,P495,c(Q15617994))
action filter_type
action find
entity Q3032174
relation P495
type Q15617994
In Praise of Love originated in [ANSWER]
['Q3032174', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . resource:Q3032174 property:P495 ?s }
France
In Praise of Love originated in France
France
action filter_type
action find
entity In Praise of Love
relation country of origin
type designation for an administrative territorial entity
['In Praise of Love', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:In_Praise_of_Love property:country_of_origin ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3032174
P840
Q56061
USER
Which administrative territory is the narrative location of In Praise of Love ?
(Q3032174,P840,c(Q56061))
action filter_type
action find
entity Q3032174
relation P840
type Q56061
['Q3032174', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q3032174 property:P840 ?d . ?d rdf:type ontology:Q56061 }
In Praise of Love
action filter_type
action find
entity In Praise of Love
relation narrative location
type administrative territorial entity
['In Praise of Love', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:In_Praise_of_Love property:narrative_location ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q3032174,P840,c(Q56061))
action filter_type
action find
entity Q3032174
relation P840
type Q56061
[ANSWER] is the narrative location of In Praise of Love
['Q3032174', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q3032174 property:P840 ?d . ?d rdf:type ontology:Q56061 }
Paris
Paris is the narrative location of In Praise of Love
Paris
action filter_type
action find
entity In Praise of Love
relation narrative location
type administrative territorial entity
['In Praise of Love', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:In_Praise_of_Love property:narrative_location ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3032174
P161
Q502895
USER
Which people were casted in In Praise of Love ?
(Q3032174,P161,c(Q502895))
action filter_type
action find
entity Q3032174
relation P161
type Q502895
['Q3032174', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q3032174 property:P161 ?h . ?h rdf:type ontology:Q502895 }
In Praise of Love
action filter_type
action find
entity In Praise of Love
relation cast member
type common name
['In Praise of Love', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:In_Praise_of_Love property:cast_member ?h . ?h rdf:type ontology:common_name }
[]
common name
Q353866 Q2744304 Q3294112
SYSTEM
Jean d'Ormesson, Jean Lacouture, Mark Hunter
Q2744304 Q353866 Q3294112 Q3086621 Q3190717 Q3424553 Q3009713 Q3171592 Q967218 Q3345892
(Q3032174,P161,c(Q502895))
action filter_type
action find
entity Q3032174
relation P161
type Q502895
[ANSWERS] were casted in In Praise of Love
['Q3032174', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q3032174 property:P161 ?h . ?h rdf:type ontology:Q502895 }
Jean Lacouture Jean d'Ormesson Mark Hunter Françoise Verny Jérémie Lippmann Remo Forlani Cécile Camp Jean Davy Bruno Putzulu Noël Simsolo
Jean d'Ormesson, Jean Lacouture and Mark Hunter were casted in In Praise of Love
Jean d'Ormesson Jean Lacouture Mark Hunter
action filter_type
action find
entity In Praise of Love
relation cast member
type common name
['In Praise of Love', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:In_Praise_of_Love property:cast_member ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7638488
Q502895
USER
And what about Sun Sajna?
(Q7638488,P161,c(Q502895))
action filter_type
action find
entity Q7638488
relation P161
type Q502895
['Q7638488', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q7638488 property:P161 ?m . ?m rdf:type ontology:Q502895 }
Sun Sajna
action filter_type
action find
entity Sun Sajna
relation cast member
type common name
['Sun Sajna', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Sun_Sajna property:cast_member ?m . ?m rdf:type ontology:common_name }
[]
common name
Q379604 Q1647814 Q6122272
SYSTEM
Mithun Chakraborty, Iftekhar, Jagdeep
Q379604 Q1647814 Q6122272 Q7288526 Q7293124
(Q7638488,P161,c(Q502895))
action filter_type
action find
entity Q7638488
relation P161
type Q502895
[ANSWERS]
['Q7638488', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q7638488 property:P161 ?m . ?m rdf:type ontology:Q502895 }
Mithun Chakraborty Iftekhar Jagdeep Ram Mohan Ranjeeta Kaur
Mithun Chakraborty Iftekhar Jagdeep
action filter_type
action find
entity Sun Sajna
relation cast member
type common name
['Sun Sajna', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Sun_Sajna property:cast_member ?m . ?m rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q740364
P169
Q502895 Q334453 Q28640
USER
How many people are the chief executive officer of greater number of divisions or professions than Yang Yuanqing ?
(c(Q334453)|c(Q28640),P169,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q334453
action find_reverse_tuple_counts
relation P169
type Q502895
type Q28640
action count
action filter_multi_types
action find_reverse
entity Q740364
relation P169
type Q334453
type Q28640
[[{'concept': 'Q334453'}, {'concept': 'Q28640'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?z ) WHERE { { ?n property:P169 ?b . ?b rdf:type ontology:Q502895 . ?n rdf:type ontology:Q334453 } UNION { ?n property:P169 ?b . ?n rdf:type ontology:Q28640 . ?b rdf:type ontology:Q502895 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:P169 resource:Q740364 . { VALUES ( ?h ) { ( ontology:Q334453 ) ( ontology:Q28640 ) } . ?y rdf:type ?h } } } . FILTER ( ?z > ?o ) }
Yang Yuanqing
action count
action greater
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type division
action find_reverse_tuple_counts
relation chief executive officer
type common name
type profession
action count
action filter_multi_types
action find_reverse
entity Yang Yuanqing
relation chief executive officer
type division
type profession
[[{'concept': 'division'}, {'concept': 'profession'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?z ) WHERE { { ?n property:chief_executive_officer ?b . ?b rdf:type ontology:common_name . ?n rdf:type ontology:division } UNION { ?n property:chief_executive_officer ?b . ?n rdf:type ontology:profession . ?b rdf:type ontology:common_name } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:chief_executive_officer resource:Yang_Yuanqing . { VALUES ( ?h ) { ( ontology:division ) ( ontology:profession ) } . ?y rdf:type ?h } } } . FILTER ( ?z > ?o ) }
[]
common name division profession
SYSTEM
12
Q6180981 Q729842 Q11898683 Q20726318 Q491580 Q429046 Q12588013 Q7608947 Q12606246 Q186601 Q2756226 Q10321870
(c(Q334453)|c(Q28640),P169,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q334453
action find_reverse_tuple_counts
relation P169
type Q502895
type Q28640
action count
action filter_multi_types
action find_reverse
entity Q740364
relation P169
type Q334453
type Q28640
[ANSWER]
[[{'concept': 'Q334453'}, {'concept': 'Q28640'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?z ) WHERE { { ?n property:P169 ?b . ?b rdf:type ontology:Q502895 . ?n rdf:type ontology:Q334453 } UNION { ?n property:P169 ?b . ?n rdf:type ontology:Q28640 . ?b rdf:type ontology:Q502895 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:P169 resource:Q740364 . { VALUES ( ?h ) { ( ontology:Q334453 ) ( ontology:Q28640 ) } . ?y rdf:type ?h } } } . FILTER ( ?z > ?o ) }
Jeremiah Slaczka Mark Pincus Tuomo Saikkonen Maximo Cavazzani Eric Mun Jay Park Kim Youngmin Stephen Cooper Yang Min-suk Lee Min-woo Simon Dominic Lyor Cohen
12
action count
action greater
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type division
action find_reverse_tuple_counts
relation chief executive officer
type common name
type profession
action count
action filter_multi_types
action find_reverse
entity Yang Yuanqing
relation chief executive officer
type division
type profession
[[{'concept': 'division'}, {'concept': 'profession'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?z ) WHERE { { ?n property:chief_executive_officer ?b . ?b rdf:type ontology:common_name . ?n rdf:type ontology:division } UNION { ?n property:chief_executive_officer ?b . ?n rdf:type ontology:profession . ?b rdf:type ontology:common_name } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:chief_executive_officer resource:Yang_Yuanqing . { VALUES ( ?h ) { ( ontology:division ) ( ontology:profession ) } . ?y rdf:type ?h } } } . FILTER ( ?z > ?o ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q7519508
P169
Q502895 Q334453 Q28640
USER
And also tell me about Simon Peckham?
(c(Q334453)|c(Q28640),P169,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q334453
action find_reverse_tuple_counts
relation P169
type Q502895
type Q28640
action count
action filter_multi_types
action find_reverse
entity Q7519508
relation P169
type Q334453
type Q28640
[[{'concept': 'Q334453'}, {'concept': 'Q28640'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { ?y property:P169 resource:Q7519508 . { { ?y rdf:type ontology:Q334453 } UNION { ?y rdf:type ontology:Q28640 } } } } . FILTER ( ?n > ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) ?u WHERE { ?w rdf:type ?a . VALUES ( ?a ) { ( ontology:Q28640 ) ( ontology:Q334453 ) } } GROUP BY ?u } }
Simon Peckham
action count
action greater
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type division
action find_reverse_tuple_counts
relation chief executive officer
type common name
type profession
action count
action filter_multi_types
action find_reverse
entity Simon Peckham
relation chief executive officer
type division
type profession
[[{'concept': 'division'}, {'concept': 'profession'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { ?y property:chief_executive_officer resource:Simon_Peckham . { { ?y rdf:type ontology:division } UNION { ?y rdf:type ontology:profession } } } } . FILTER ( ?n > ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) ?u WHERE { ?w rdf:type ?a . VALUES ( ?a ) { ( ontology:profession ) ( ontology:division ) } } GROUP BY ?u } }
[]
common name division profession
SYSTEM
12
Q6180981 Q729842 Q11898683 Q20726318 Q491580 Q429046 Q12588013 Q7608947 Q12606246 Q186601 Q2756226 Q10321870
(c(Q334453)|c(Q28640),P169,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q334453
action find_reverse_tuple_counts
relation P169
type Q502895
type Q28640
action count
action filter_multi_types
action find_reverse
entity Q7519508
relation P169
type Q334453
type Q28640
[ANSWER]
[[{'concept': 'Q334453'}, {'concept': 'Q28640'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { ?y property:P169 resource:Q7519508 . { { ?y rdf:type ontology:Q334453 } UNION { ?y rdf:type ontology:Q28640 } } } } . FILTER ( ?n > ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) ?u WHERE { ?w rdf:type ?a . VALUES ( ?a ) { ( ontology:Q28640 ) ( ontology:Q334453 ) } } GROUP BY ?u } }
Jeremiah Slaczka Mark Pincus Tuomo Saikkonen Maximo Cavazzani Eric Mun Jay Park Kim Youngmin Stephen Cooper Yang Min-suk Lee Min-woo Simon Dominic Lyor Cohen
12
action count
action greater
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type division
action find_reverse_tuple_counts
relation chief executive officer
type common name
type profession
action count
action filter_multi_types
action find_reverse
entity Simon Peckham
relation chief executive officer
type division
type profession
[[{'concept': 'division'}, {'concept': 'profession'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { ?y property:chief_executive_officer resource:Simon_Peckham . { { ?y rdf:type ontology:division } UNION { ?y rdf:type ontology:profession } } } } . FILTER ( ?n > ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) ?u WHERE { ?w rdf:type ?a . VALUES ( ?a ) { ( ontology:profession ) ( ontology:division ) } } GROUP BY ?u } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q15416
USER
How many television programs had their voice dubbing done by exactly 11 people ?
(c(Q15416),P725,c(Q502895))
action count
action equal
action find_tuple_counts
relation P725
type Q15416
type Q502895
value 11
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?q ) WHERE { ?u rdf:type ontology:Q15416 . ?x rdf:type ontology:Q502895 . ?u property:P725 ?x } GROUP BY ?u } . FILTER ( ?q = 11 ) }
action count
action equal
action find_tuple_counts
relation voice actor
type television program
type common name
value 11
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?q ) WHERE { ?u rdf:type ontology:television_program . ?x rdf:type ontology:common_name . ?u property:voice_actor ?x } GROUP BY ?u } . FILTER ( ?q = 11 ) }
[]
common name television program
SYSTEM
1
Q165515
(c(Q15416),P725,c(Q502895))
action count
action equal
action find_tuple_counts
relation P725
type Q15416
type Q502895
value 11
[ANSWER]
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?q ) WHERE { ?u rdf:type ontology:Q15416 . ?x rdf:type ontology:Q502895 . ?u property:P725 ?x } GROUP BY ?u } . FILTER ( ?q = 11 ) }
101 Dalmatians: The Series
1
action count
action equal
action find_tuple_counts
relation voice actor
type television program
type common name
value 11
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?q ) WHERE { ?u rdf:type ontology:television_program . ?x rdf:type ontology:common_name . ?u property:voice_actor ?x } GROUP BY ?u } . FILTER ( ?q = 11 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q587697 Q3032174
P58 P40
Q502895
USER
Which people wrote the screenplay for In Praise of Love or are an offsprings of Afonso I of Portugal ?
OR((Q3032174,P58,c(Q502895)), (Q587697,P40,c(Q502895)))
action filter_type
action union
action find
entity Q3032174
relation P58
action find
entity Q587697
relation P40
type Q502895
{'OR': [['Q3032174', 'P58', {'concept': 'Q502895'}], ['Q587697', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q3032174 property:P58 ?i } UNION { resource:Q587697 property:P40 ?i } } . ?i rdf:type ontology:Q502895 }
Afonso I of Portugal In Praise of Love
action filter_type
action union
action find
entity In Praise of Love
relation screenwriter
action find
entity Afonso I of Portugal
relation child
type common name
{'OR': [['In Praise of Love', 'screenwriter', {'concept': 'common name'}], ['Afonso I of Portugal', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?i WHERE { { { resource:In_Praise_of_Love property:screenwriter ?i } UNION { resource:Afonso_I_of_Portugal property:child ?i } } . ?i rdf:type ontology:common_name }
[]
common name
Q10294700 Q2600808 Q53001 Q2406584 Q1703679 Q17000554 Q727203 Q1058544
SYSTEM
Henrique Afonso, Infante de Portugal, Mafalda of Portugal, Jean-Luc Godard, Urraca of Portugal, Theresa of Portugal, Countess of Flanders, Pedro Afonso, mestre de Avis, Fernando Afonso of Portugal, Sancho I of Portugal
Q10294700 Q2600808 Q53001 Q2406584 Q1703679 Q17000554 Q727203 Q1058544
OR((Q3032174,P58,c(Q502895)), (Q587697,P40,c(Q502895)))
action filter_type
action union
action find
entity Q3032174
relation P58
action find
entity Q587697
relation P40
type Q502895
[ANSWERS] wrote the screenplay for In Praise of Love or are an offsprings of Afonso I of Portugal
{'OR': [['Q3032174', 'P58', {'concept': 'Q502895'}], ['Q587697', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q3032174 property:P58 ?i } UNION { resource:Q587697 property:P40 ?i } } . ?i rdf:type ontology:Q502895 }
Henrique Afonso, Infante de Portugal Mafalda of Portugal Jean-Luc Godard Urraca of Portugal Theresa of Portugal, Countess of Flanders Pedro Afonso, mestre de Avis Fernando Afonso of Portugal Sancho I of Portugal
Henrique Afonso, Infante de Portugal, Mafalda of Portugal, Jean-Luc Godard, Urraca of Portugal, Theresa of Portugal, Countess of Flanders, Pedro Afonso, mestre de Avis, Fernando Afonso of Portugal and Sancho I of Portugal wrote the screenplay for In Praise of Love or are an offsprings of Afonso I of Portugal
Henrique Afonso, Infante de Portugal Mafalda of Portugal Jean-Luc Godard Urraca of Portugal Theresa of Portugal, Countess of Flanders Pedro Afonso, mestre de Avis Fernando Afonso of Portugal Sancho I of Portugal
action filter_type
action union
action find
entity In Praise of Love
relation screenwriter
action find
entity Afonso I of Portugal
relation child
type common name
{'OR': [['In Praise of Love', 'screenwriter', {'concept': 'common name'}], ['Afonso I of Portugal', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?i WHERE { { { resource:In_Praise_of_Love property:screenwriter ?i } UNION { resource:Afonso_I_of_Portugal property:child ?i } } . ?i rdf:type ontology:common_name }
[]