Simple Question (Direct)
Simple Question
Q16027206
P106
Q12737077
USER
What is the job of Victor Richardet ?
(Q16027206,P106,c(Q12737077))
action filter_type
action find
entity Q16027206
relation P106
type Q12737077
['Q16027206', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q16027206 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
Victor Richardet
action filter_type
action find
entity Victor Richardet
relation occupation
type occupation
['Victor Richardet', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Victor_Richardet property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q16027206,P106,c(Q12737077))
action filter_type
action find
entity Q16027206
relation P106
type Q12737077
The job of Victor Richardet is a [ANSWER]
['Q16027206', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q16027206 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
politician
The job of Victor Richardet is a politician
politician
action filter_type
action find
entity Victor Richardet
relation occupation
type occupation
['Victor Richardet', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Victor_Richardet property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16027206
P39
Q12737077
USER
Which occupation was a position held by Victor Richardet ?
(Q16027206,P39,c(Q12737077))
action filter_type
action find
entity Q16027206
relation P39
type Q12737077
['Q16027206', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q16027206 property:P39 ?q . ?q rdf:type ontology:Q12737077 }
Victor Richardet
action filter_type
action find
entity Victor Richardet
relation position held
type occupation
['Victor Richardet', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Victor_Richardet property:position_held ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q3044918
SYSTEM
member of the French National Assembly
Q3044918
(Q16027206,P39,c(Q12737077))
action filter_type
action find
entity Q16027206
relation P39
type Q12737077
The member of the French National Assembly was a position held by Victor Richardet
['Q16027206', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q16027206 property:P39 ?q . ?q rdf:type ontology:Q12737077 }
member of the French National Assembly
The member of the French National Assembly was a position held by Victor Richardet
member of the French National Assembly
action filter_type
action find
entity Victor Richardet
relation position held
type occupation
['Victor Richardet', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Victor_Richardet property:position_held ?q . ?q rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1520121
Q12737077
USER
And what about Serafino Sprovieri?
(Q1520121,P39,c(Q12737077))
action filter_type
action find
entity Q1520121
relation P39
type Q12737077
['Q1520121', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q1520121 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
Serafino Sprovieri
action filter_type
action find
entity Serafino Sprovieri
relation position held
type occupation
['Serafino Sprovieri', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Serafino_Sprovieri property:position_held ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q29182
SYSTEM
bishop
Q29182
(Q1520121,P39,c(Q12737077))
action filter_type
action find
entity Q1520121
relation P39
type Q12737077
[ANSWER]
['Q1520121', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q1520121 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
bishop
bishop
action filter_type
action find
entity Serafino Sprovieri
relation position held
type occupation
['Serafino Sprovieri', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Serafino_Sprovieri property:position_held ?i . ?i rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q29182 Q6081528 Q177826
P361
Q151885
USER
Is that occupation a component of pocky and clergy ?
(Q29182,P361,Q6081528) (Q29182,P361,Q177826)
action is_in
entity Q29182
action intersection
action find_reverse
entity Q6081528
relation P361
action find_reverse
entity Q177826
relation P361
['Q29182', 'P361', 'Q6081528'] ['Q29182', 'P361', 'Q177826']
ASK WHERE { resource:Q29182 property:P361 resource:Q6081528 . resource:Q29182 property:P361 resource:Q177826 }
bishop pocky clergy
action is_in
entity bishop
action intersection
action find_reverse
entity pocky
relation part of
action find_reverse
entity clergy
relation part of
['bishop', 'part of', 'pocky'] ['bishop', 'part of', 'clergy']
ASK WHERE { resource:bishop property:part_of resource:pocky . resource:bishop property:part_of resource:clergy }
[]
concept
SYSTEM
NO and YES respectively
(Q29182,P361,Q6081528) (Q29182,P361,Q177826)
action is_in
entity Q29182
action intersection
action find_reverse
entity Q6081528
relation P361
action find_reverse
entity Q177826
relation P361
[ANSWER]
['Q29182', 'P361', 'Q6081528'] ['Q29182', 'P361', 'Q177826']
ASK WHERE { resource:Q29182 property:P361 resource:Q6081528 . resource:Q29182 property:P361 resource:Q177826 }
NO and YES respectively
action is_in
entity bishop
action intersection
action find_reverse
entity pocky
relation part of
action find_reverse
entity clergy
relation part of
['bishop', 'part of', 'pocky'] ['bishop', 'part of', 'clergy']
ASK WHERE { resource:bishop property:part_of resource:pocky . resource:bishop property:part_of resource:clergy }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q16027206 Q172593 Q820042
P19
Q20667921
USER
Does Victor Richardet have location of birth at Montauban and Salins-les-Bains ?
(Q16027206,P19,Q172593) (Q16027206,P19,Q820042)
action is_in
entity Q16027206
action intersection
action find_reverse
entity Q172593
relation P19
action find_reverse
entity Q820042
relation P19
['Q16027206', 'P19', 'Q172593'] ['Q16027206', 'P19', 'Q820042']
ASK WHERE { resource:Q16027206 property:P19 resource:Q172593 . resource:Q16027206 property:P19 resource:Q820042 }
Victor Richardet Montauban Salins-les-Bains
action is_in
entity Victor Richardet
action intersection
action find_reverse
entity Montauban
relation place of birth
action find_reverse
entity Salins-les-Bains
relation place of birth
['Victor Richardet', 'place of birth', 'Montauban'] ['Victor Richardet', 'place of birth', 'Salins-les-Bains']
ASK WHERE { resource:Victor_Richardet property:place_of_birth resource:Montauban . resource:Victor_Richardet property:place_of_birth resource:Salins-les-Bains }
[]
type of french administrative division
SYSTEM
NO and YES respectively
(Q16027206,P19,Q172593) (Q16027206,P19,Q820042)
action is_in
entity Q16027206
action intersection
action find_reverse
entity Q172593
relation P19
action find_reverse
entity Q820042
relation P19
[ANSWER]
['Q16027206', 'P19', 'Q172593'] ['Q16027206', 'P19', 'Q820042']
ASK WHERE { resource:Q16027206 property:P19 resource:Q172593 . resource:Q16027206 property:P19 resource:Q820042 }
NO and YES respectively
action is_in
entity Victor Richardet
action intersection
action find_reverse
entity Montauban
relation place of birth
action find_reverse
entity Salins-les-Bains
relation place of birth
['Victor Richardet', 'place of birth', 'Montauban'] ['Victor Richardet', 'place of birth', 'Salins-les-Bains']
ASK WHERE { resource:Victor_Richardet property:place_of_birth resource:Montauban . resource:Victor_Richardet property:place_of_birth resource:Salins-les-Bains }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the names of person who are the patron saints of around 1 occupation ?
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?d = 1 ) . { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:P417 ?w . ?i rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q502895 } GROUP BY ?w } }
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?d = 1 ) . { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:patron_saint ?w . ?i rdf:type ontology:occupation . ?w rdf:type ontology:common_name } GROUP BY ?w } }
[]
common name occupation
Q9438 Q60059 Q44281
SYSTEM
Thomas Aquinas, Albertus Magnus, Ignatius of Loyola
Q453698 Q152457 Q43689 Q163900 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q508214 Q9200 Q193507 Q463600 Q43669 Q40662 Q332656 Q320171 Q137947 Q80513 Q324700 Q44015 Q149727 Q232427 Q60059 Q17590 Q271474 Q276148
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[ANSWERS] are the names of person who are the patron saints of around 1 occupation
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?d = 1 ) . { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:P417 ?w . ?i rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q502895 } GROUP BY ?w } }
Saint Amand Saint Roch Ambrose Saint Francis Xavier Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Urban of Langres John the Apostle Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Charalampus
Thomas Aquinas, Albertus Magnus and Ignatius of Loyola are the names of person who are the patron saints of around 1 occupation
Thomas Aquinas Albertus Magnus Ignatius of Loyola
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?d = 1 ) . { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:patron_saint ?w . ?i rdf:type ontology:occupation . ?w rdf:type ontology:common_name } GROUP BY ?w } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7928208 Q16027206
P27 P17
Q15617994
USER
Which administrative territories are Victor Richardet an inhabitant of or are Vidyanagar railway station situated in ?
OR((Q16027206,P27,c(Q15617994)), (Q7928208,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q16027206
relation P27
action find
entity Q7928208
relation P17
type Q15617994
{'OR': [['Q16027206', 'P27', {'concept': 'Q15617994'}], ['Q7928208', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q16027206 property:P27 ?w } UNION { resource:Q7928208 property:P17 ?w } } . ?w rdf:type ontology:Q15617994 }
Vidyanagar railway station Victor Richardet
action filter_type
action union
action find
entity Victor Richardet
relation country of citizenship
action find
entity Vidyanagar railway station
relation country
type designation for an administrative territorial entity
{'OR': [['Victor Richardet', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Vidyanagar railway station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Victor_Richardet property:country_of_citizenship ?w } UNION { resource:Vidyanagar_railway_station property:country ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q668
SYSTEM
France, India
Q142 Q668
OR((Q16027206,P27,c(Q15617994)), (Q7928208,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q16027206
relation P27
action find
entity Q7928208
relation P17
type Q15617994
[ANSWERS] are Victor Richardet an inhabitant of or are Vidyanagar railway station situated in
{'OR': [['Q16027206', 'P27', {'concept': 'Q15617994'}], ['Q7928208', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q16027206 property:P27 ?w } UNION { resource:Q7928208 property:P17 ?w } } . ?w rdf:type ontology:Q15617994 }
France India
France and India are Victor Richardet an inhabitant of or are Vidyanagar railway station situated in
France India
action filter_type
action union
action find
entity Victor Richardet
relation country of citizenship
action find
entity Vidyanagar railway station
relation country
type designation for an administrative territorial entity
{'OR': [['Victor Richardet', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Vidyanagar railway station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Victor_Richardet property:country_of_citizenship ?w } UNION { resource:Vidyanagar_railway_station property:country ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P941
Q15617994 Q3895768
USER
Which administrative territories were approximately the same number of fictional locations inspired by as that administrative territory ?
(c(Q3895768),P941,c(Q15617994))
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity fictional location
Comparative|More/Less|Single entity type|Clarification
Q668
SYSTEM
Did you mean India ?
(c(Q3895768),P941,c(Q15617994))
[ANSWER]
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
Did you mean India ?
India
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
USER
No, I meant France. Could you tell me the answer for that?
(c(Q3895768),P941,c(Q15617994))
Q142
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
[]
Q159 Q55 Q142
SYSTEM
Russia, Netherlands, France
Q142 Q159 Q424 Q794 Q33 Q954 Q31 Q889 Q55
(c(Q3895768),P941,c(Q15617994))
[ANSWERS] were approximately the same number of fictional locations inspired by as that administrative territory
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
France Russia Cambodia Iran Finland Zimbabwe Belgium Afghanistan Netherlands
Russia, Netherlands and France were approximately the same number of fictional locations inspired by as that administrative territory
Russia Netherlands France
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q794 Q668
P17
Q56061
USER
Which administrative territories are present in India and Iran ?
AND((c(Q56061),P17,Q668), (c(Q56061),P17,Q794))
action filter_type
action intersection
action find_reverse
entity Q668
relation P17
action find_reverse
entity Q794
relation P17
type Q56061
{'AND': [[{'concept': 'Q56061'}, 'P17', 'Q668'], [{'concept': 'Q56061'}, 'P17', 'Q794']]}
SELECT DISTINCT ?m WHERE { ?m property:P17 resource:Q668 . ?m property:P17 resource:Q794 . ?m rdf:type ontology:Q56061 }
Iran India
action filter_type
action intersection
action find_reverse
entity India
relation country
action find_reverse
entity Iran
relation country
type administrative territorial entity
{'AND': [[{'concept': 'administrative territorial entity'}, 'country', 'India'], [{'concept': 'administrative territorial entity'}, 'country', 'Iran']]}
SELECT DISTINCT ?m WHERE { ?m property:country resource:India . ?m property:country resource:Iran . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q5831968 Q759217
SYSTEM
Jitu, Bhadohi
Q5831968 Q759217
AND((c(Q56061),P17,Q668), (c(Q56061),P17,Q794))
action filter_type
action intersection
action find_reverse
entity Q668
relation P17
action find_reverse
entity Q794
relation P17
type Q56061
[ANSWERS] are present in India and Iran
{'AND': [[{'concept': 'Q56061'}, 'P17', 'Q668'], [{'concept': 'Q56061'}, 'P17', 'Q794']]}
SELECT DISTINCT ?m WHERE { ?m property:P17 resource:Q668 . ?m property:P17 resource:Q794 . ?m rdf:type ontology:Q56061 }
Jitu Bhadohi
Jitu and Bhadohi are present in India and Iran
Jitu Bhadohi
action filter_type
action intersection
action find_reverse
entity India
relation country
action find_reverse
entity Iran
relation country
type administrative territorial entity
{'AND': [[{'concept': 'administrative territorial entity'}, 'country', 'India'], [{'concept': 'administrative territorial entity'}, 'country', 'Iran']]}
SELECT DISTINCT ?m WHERE { ?m property:country resource:India . ?m property:country resource:Iran . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q5831968 Q759217
P17
Q15617994
USER
Which administrative territories are those administrative territories situated in ?
(Q5831968,P17,c(Q15617994)) (Q759217,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q5831968', 'P17', {'concept': 'Q15617994'}] ['Q759217', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { ?f property:P17 ?j . ?j rdf:type ontology:Q15617994 . VALUES ( ?f ) { ( resource:Q5831968 ) ( resource:Q759217 ) } }
Jitu Bhadohi
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Jitu', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Bhadohi', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?f property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?f ) { ( resource:Jitu ) ( resource:Bhadohi ) } }
[]
designation for an administrative territorial entity
Q668 Q668 Q794
SYSTEM
Iran for 3rd, India for 1st, 2nd
Q668 Q794 Q668 Q794
(Q5831968,P17,c(Q15617994)) (Q759217,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
[ANSWERS]
['Q5831968', 'P17', {'concept': 'Q15617994'}] ['Q759217', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { ?f property:P17 ?j . ?j rdf:type ontology:Q15617994 . VALUES ( ?f ) { ( resource:Q5831968 ) ( resource:Q759217 ) } }
India Iran India Iran
Those administrative territories are situated in India, India and Iran
India India Iran
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Jitu', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Bhadohi', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?f property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?f ) { ( resource:Jitu ) ( resource:Bhadohi ) } }
[]