Simple Question (Direct)
Simple Question
Q7599212
P26
Q502895
USER
Who is married to Stanisław Potocki ?
(Q7599212,P26,c(Q502895))
action filter_type
action find
entity Q7599212
relation P26
type Q502895
['Q7599212', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q7599212 property:P26 ?c . ?c rdf:type ontology:Q502895 }
Stanisław Potocki
action filter_type
action find
entity Stanisław Potocki
relation spouse
type common name
['Stanisław Potocki', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Stanisław_Potocki property:spouse ?c . ?c rdf:type ontology:common_name }
[]
common name
Q5703795
SYSTEM
Helena Zamoyska
Q5703795
(Q7599212,P26,c(Q502895))
action filter_type
action find
entity Q7599212
relation P26
type Q502895
[ANSWER] is married to Stanisław Potocki
['Q7599212', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q7599212 property:P26 ?c . ?c rdf:type ontology:Q502895 }
Helena Zamoyska
Helena Zamoyska is married to Stanisław Potocki
Helena Zamoyska
action filter_type
action find
entity Stanisław Potocki
relation spouse
type common name
['Stanisław Potocki', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Stanisław_Potocki property:spouse ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7599212
P22
Q502895
USER
Who was the dad of Stanisław Potocki ?
(Q7599212,P22,c(Q502895))
action filter_type
action find
entity Q7599212
relation P22
type Q502895
['Q7599212', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q7599212 property:P22 ?v }
Stanisław Potocki
action filter_type
action find
entity Stanisław Potocki
relation father
type common name
['Stanisław Potocki', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:Stanisław_Potocki property:father ?v }
[]
common name
Q2626847
SYSTEM
Józef Potocki
Q2626847
(Q7599212,P22,c(Q502895))
action filter_type
action find
entity Q7599212
relation P22
type Q502895
The dad of Stanisław Potocki was [ANSWER]
['Q7599212', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q7599212 property:P22 ?v }
Józef Potocki
The dad of Stanisław Potocki was Józef Potocki
Józef Potocki
action filter_type
action find
entity Stanisław Potocki
relation father
type common name
['Stanisław Potocki', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:Stanisław_Potocki property:father ?v }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3697447
Q502895
USER
And how about Cristiano De André?
(Q3697447,P22,c(Q502895))
action filter_type
action find
entity Q3697447
relation P22
type Q502895
['Q3697447', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q3697447 property:P22 ?k . ?k rdf:type ontology:Q502895 }
Cristiano De André
action filter_type
action find
entity Cristiano De André
relation father
type common name
['Cristiano De André', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Cristiano_De_André property:father ?k . ?k rdf:type ontology:common_name }
[]
common name
Q25106
SYSTEM
Fabrizio De André
Q25106
(Q3697447,P22,c(Q502895))
action filter_type
action find
entity Q3697447
relation P22
type Q502895
[ANSWER]
['Q3697447', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q3697447 property:P22 ?k . ?k rdf:type ontology:Q502895 }
Fabrizio De André
Fabrizio De André
action filter_type
action find
entity Cristiano De André
relation father
type common name
['Cristiano De André', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Cristiano_De_André property:father ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3697447
P40
Q502895
USER
Who has Cristiano De André as a child ?
(c(Q502895),P40,Q3697447)
action filter_type
action find_reverse
entity Q3697447
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q3697447']
SELECT DISTINCT ?f WHERE { ?f property:P40 resource:Q3697447 . ?f rdf:type ontology:Q502895 }
Cristiano De André
action filter_type
action find_reverse
entity Cristiano De André
relation child
type common name
[{'concept': 'common name'}, 'child', 'Cristiano De André']
SELECT DISTINCT ?f WHERE { ?f property:child resource:Cristiano_De_André . ?f rdf:type ontology:common_name }
[]
common name
Q25106
SYSTEM
Fabrizio De André
Q25106
(c(Q502895),P40,Q3697447)
action filter_type
action find_reverse
entity Q3697447
relation P40
type Q502895
[ANSWER] has Cristiano De André as a child
[{'concept': 'Q502895'}, 'P40', 'Q3697447']
SELECT DISTINCT ?f WHERE { ?f property:P40 resource:Q3697447 . ?f rdf:type ontology:Q502895 }
Fabrizio De André
Fabrizio De André has Cristiano De André as a child
Fabrizio De André
action filter_type
action find_reverse
entity Cristiano De André
relation child
type common name
[{'concept': 'common name'}, 'child', 'Cristiano De André']
SELECT DISTINCT ?f WHERE { ?f property:child resource:Cristiano_De_André . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q25106
P50
Q2342494
USER
Which collectable is that person an author of ?
(c(Q2342494),P50,Q25106)
action filter_type
action find_reverse
entity Q25106
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q25106']
SELECT DISTINCT ?h WHERE { ?h property:P50 resource:Q25106 . ?h rdf:type ontology:Q2342494 }
Fabrizio De André
action filter_type
action find_reverse
entity Fabrizio De André
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Fabrizio De André']
SELECT DISTINCT ?h WHERE { ?h property:author resource:Fabrizio_De_André . ?h rdf:type ontology:collectable }
[]
collectable
Q4003758
SYSTEM
Un destino ridicolo
Q4003758
(c(Q2342494),P50,Q25106)
action filter_type
action find_reverse
entity Q25106
relation P50
type Q2342494
[ANSWER] is that person an author of
[{'concept': 'Q2342494'}, 'P50', 'Q25106']
SELECT DISTINCT ?h WHERE { ?h property:P50 resource:Q25106 . ?h rdf:type ontology:Q2342494 }
Un destino ridicolo
Un destino ridicolo is that person an author of
Un destino ridicolo
action filter_type
action find_reverse
entity Fabrizio De André
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Fabrizio De André']
SELECT DISTINCT ?h WHERE { ?h property:author resource:Fabrizio_De_André . ?h rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q25106
P86
Q838948
USER
Which work of art has that person as the composer ?
(c(Q838948),P86,Q4003758)
action filter_type
action find_reverse
entity Q25106
relation P86
type Q838948
[{'concept': 'Q838948'}, 'P86', 'Q4003758']
SELECT DISTINCT ?e WHERE { ?e property:P86 resource:Q25106 . ?e rdf:type ontology:Q838948 }
Fabrizio De André
action filter_type
action find_reverse
entity Fabrizio De André
relation composer
type work of art
[{'concept': 'work of art'}, 'composer', 'Un destino ridicolo']
SELECT DISTINCT ?e WHERE { ?e property:composer resource:Fabrizio_De_André . ?e rdf:type ontology:work_of_art }
[]
work of art
Q3993448
SYSTEM
Topo Galileo
Q3993448
(c(Q838948),P86,Q4003758)
action filter_type
action find_reverse
entity Q25106
relation P86
type Q838948
[ANSWER] has that person as the composer
[{'concept': 'Q838948'}, 'P86', 'Q4003758']
SELECT DISTINCT ?e WHERE { ?e property:P86 resource:Q25106 . ?e rdf:type ontology:Q838948 }
Topo Galileo
Topo Galileo has that person as the composer
Topo Galileo
action filter_type
action find_reverse
entity Fabrizio De André
relation composer
type work of art
[{'concept': 'work of art'}, 'composer', 'Un destino ridicolo']
SELECT DISTINCT ?e WHERE { ?e property:composer resource:Fabrizio_De_André . ?e rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q25106
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q3993448,P27,c(Q15617994))
action filter_type
action find
entity Q25106
relation P27
type Q15617994
['Q3993448', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q25106 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Fabrizio De André
action filter_type
action find
entity Fabrizio De André
relation country of citizenship
type designation for an administrative territorial entity
['Topo Galileo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Fabrizio_De_André property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q3993448,P27,c(Q15617994))
action filter_type
action find
entity Q25106
relation P27
type Q15617994
The [ANSWER] is that person an inhabitant of
['Q3993448', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q25106 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Italy
The Italy is that person an inhabitant of
Italy
action filter_type
action find
entity Fabrizio De André
relation country of citizenship
type designation for an administrative territorial entity
['Topo Galileo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Fabrizio_De_André property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q502895 Q44539 Q12737077
USER
How many people are the patron saint of exactly 5 temples or occupations ?
(c(Q44539)|c(Q12737077),P417,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 5
[[{'concept': 'Q44539'}, {'concept': 'Q12737077'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?r WHERE { { ?c property:P417 ?r . ?r rdf:type ontology:Q502895 . ?c rdf:type ontology:Q44539 } UNION { ?r rdf:type ontology:Q502895 . ?c rdf:type ontology:Q12737077 . ?c property:P417 ?r } } GROUP BY ?r } . FILTER ( ?f = 5 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 5
[[{'concept': 'temple'}, {'concept': 'occupation'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?r WHERE { { ?c property:patron_saint ?r . ?r rdf:type ontology:common_name . ?c rdf:type ontology:temple } UNION { ?r rdf:type ontology:common_name . ?c rdf:type ontology:occupation . ?c property:patron_saint ?r } } GROUP BY ?r } . FILTER ( ?f = 5 ) }
[]
common name temple occupation
SYSTEM
5
Q328804 Q145746 Q196527 Q43600 Q200895
(c(Q44539)|c(Q12737077),P417,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 5
[ANSWER]
[[{'concept': 'Q44539'}, {'concept': 'Q12737077'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?r WHERE { { ?c property:P417 ?r . ?r rdf:type ontology:Q502895 . ?c rdf:type ontology:Q44539 } UNION { ?r rdf:type ontology:Q502895 . ?c rdf:type ontology:Q12737077 . ?c property:P417 ?r } } GROUP BY ?r } . FILTER ( ?f = 5 ) }
John the Evangelist Joseph Saint Wenceslaus I, Duke of Bohemia Matthew the Apostle Agatha of Sicily
5
action count
action equal
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 5
[[{'concept': 'temple'}, {'concept': 'occupation'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?r WHERE { { ?c property:patron_saint ?r . ?r rdf:type ontology:common_name . ?c rdf:type ontology:temple } UNION { ?r rdf:type ontology:common_name . ?c rdf:type ontology:occupation . ?c property:patron_saint ?r } } GROUP BY ?r } . FILTER ( ?f = 5 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q7599212
P21 P40
Q502895
USER
Which people have Stanisław Potocki as a child and are a male ?
AND((c(Q502895),P40,Q7599212), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q7599212
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q7599212'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?x property:P21 resource:Q6581097 . ?x property:P40 resource:Q7599212 }
male Stanisław Potocki
action filter_type
action intersection
action find_reverse
entity Stanisław Potocki
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Stanisław Potocki'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?x property:gender resource:male . ?x property:child resource:Stanisław_Potocki }
[]
common name
Q2626847
SYSTEM
Józef Potocki
Q2626847
AND((c(Q502895),P40,Q7599212), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q7599212
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Stanisław Potocki as a child and are a male
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q7599212'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?x property:P21 resource:Q6581097 . ?x property:P40 resource:Q7599212 }
Józef Potocki
Józef Potocki have Stanisław Potocki as a child and are a male
Józef Potocki
action filter_type
action intersection
action find_reverse
entity Stanisław Potocki
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Stanisław Potocki'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?x property:gender resource:male . ?x property:child resource:Stanisław_Potocki }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q1001378
USER
Which cinematic techniques did approximately 27 people dub for ?
(c(Q1001378),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q1001378
type Q502895
value 27
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?z ) WHERE { ?x property:P725 ?t . ?x rdf:type ontology:Q1001378 . ?t rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?z = 27 ) }
action approx
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
value 27
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?z ) WHERE { ?x property:voice_actor ?t . ?x rdf:type ontology:cinematic_technique . ?t rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?z = 27 ) }
[]
common name cinematic technique
Q2329413
SYSTEM
Barbie as the Princess and the Pauper
Q2329413
(c(Q1001378),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q1001378
type Q502895
value 27
Approximately 27 people dubbed the [ANSWER]
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?z ) WHERE { ?x property:P725 ?t . ?x rdf:type ontology:Q1001378 . ?t rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?z = 27 ) }
Barbie as the Princess and the Pauper
Approximately 27 people dubbed the Barbie as the Princess and the Pauper
Barbie as the Princess and the Pauper
action approx
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
value 27
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?z ) WHERE { ?x property:voice_actor ?t . ?x rdf:type ontology:cinematic_technique . ?t rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?z = 27 ) }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q2329413 Q2621511 Q30
P495
Q15617994
USER
Does that cinematic technique originates at San Pedro Jocopilas and United States of America ?
(Q2329413,P495,Q2621511) (Q2329413,P495,Q30)
action is_in
entity Q2329413
action intersection
action find_reverse
entity Q2621511
relation P495
action find_reverse
entity Q30
relation P495
['Q2329413', 'P495', 'Q2621511'] ['Q2329413', 'P495', 'Q30']
ASK WHERE { resource:Q2329413 property:P495 resource:Q2621511 . resource:Q2329413 property:P495 resource:Q30 }
Barbie as the Princess and the Pauper San Pedro Jocopilas United States of America
action is_in
entity Barbie as the Princess and the Pauper
action intersection
action find_reverse
entity San Pedro Jocopilas
relation country of origin
action find_reverse
entity United States of America
relation country of origin
['Barbie as the Princess and the Pauper', 'country of origin', 'San Pedro Jocopilas'] ['Barbie as the Princess and the Pauper', 'country of origin', 'United States of America']
ASK WHERE { resource:Barbie_as_the_Princess_and_the_Pauper property:country_of_origin resource:San_Pedro_Jocopilas . resource:Barbie_as_the_Princess_and_the_Pauper property:country_of_origin resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q2329413,P495,Q2621511) (Q2329413,P495,Q30)
action is_in
entity Q2329413
action intersection
action find_reverse
entity Q2621511
relation P495
action find_reverse
entity Q30
relation P495
[ANSWER]
['Q2329413', 'P495', 'Q2621511'] ['Q2329413', 'P495', 'Q30']
ASK WHERE { resource:Q2329413 property:P495 resource:Q2621511 . resource:Q2329413 property:P495 resource:Q30 }
NO and YES respectively
action is_in
entity Barbie as the Princess and the Pauper
action intersection
action find_reverse
entity San Pedro Jocopilas
relation country of origin
action find_reverse
entity United States of America
relation country of origin
['Barbie as the Princess and the Pauper', 'country of origin', 'San Pedro Jocopilas'] ['Barbie as the Princess and the Pauper', 'country of origin', 'United States of America']
ASK WHERE { resource:Barbie_as_the_Princess_and_the_Pauper property:country_of_origin resource:San_Pedro_Jocopilas . resource:Barbie_as_the_Princess_and_the_Pauper property:country_of_origin resource:United_States_of_America }
[]