Simple Question (Direct)
Simple Question
Q3588718
P39
Q12737077
USER
Which occupations were the positions occupied by Émile Rigaud ?
(Q3588718,P39,c(Q12737077))
action filter_type
action find
entity Q3588718
relation P39
type Q12737077
['Q3588718', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q3588718 property:P39 ?z }
Émile Rigaud
action filter_type
action find
entity Émile Rigaud
relation position held
type occupation
['Émile Rigaud', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:Émile_Rigaud property:position_held ?z }
[]
occupation
Q382617 Q3044918
SYSTEM
maire, member of the French National Assembly
Q382617 Q3044918
(Q3588718,P39,c(Q12737077))
action filter_type
action find
entity Q3588718
relation P39
type Q12737077
[ANSWERS]
['Q3588718', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q3588718 property:P39 ?z }
maire member of the French National Assembly
The maire and member of the French National Assembly were the positions occupied by Émile Rigaud
maire member of the French National Assembly
action filter_type
action find
entity Émile Rigaud
relation position held
type occupation
['Émile Rigaud', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:Émile_Rigaud property:position_held ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3588718
P27
Q15617994
USER
Which administrative territory is Émile Rigaud an inhabitant of ?
(Q3588718,P27,c(Q15617994))
action filter_type
action find
entity Q3588718
relation P27
type Q15617994
['Q3588718', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q3588718 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
Émile Rigaud
action filter_type
action find
entity Émile Rigaud
relation country of citizenship
type designation for an administrative territorial entity
['Émile Rigaud', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Émile_Rigaud property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3588718,P27,c(Q15617994))
action filter_type
action find
entity Q3588718
relation P27
type Q15617994
[ANSWER] is Émile Rigaud an inhabitant of
['Q3588718', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q3588718 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
France
France is Émile Rigaud an inhabitant of
France
action filter_type
action find
entity Émile Rigaud
relation country of citizenship
type designation for an administrative territorial entity
['Émile Rigaud', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Émile_Rigaud property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3588718
P106
Q12737077
USER
Which occupation has Émile Rigaud as his/her 's career ?
(Q3588718,P106,c(Q12737077))
action filter_type
action find
entity Q3588718
relation P106
type Q12737077
['Q3588718', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q3588718 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Émile Rigaud
action filter_type
action find
entity Émile Rigaud
relation occupation
type occupation
['Émile Rigaud', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Émile_Rigaud property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q3588718,P106,c(Q12737077))
action filter_type
action find
entity Q3588718
relation P106
type Q12737077
The [ANSWER] has Émile Rigaud as his/her 's career
['Q3588718', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q3588718 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
politician
The politician has Émile Rigaud as his/her 's career
politician
action filter_type
action find
entity Émile Rigaud
relation occupation
type occupation
['Émile Rigaud', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Émile_Rigaud property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3588718
P20
Q20667921
USER
Where did Émile Rigaud expire ?
(Q3588718,P20,c(Q20667921))
action filter_type
action find
entity Q3588718
relation P20
type Q20667921
['Q3588718', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?i WHERE { resource:Q3588718 property:P20 ?i . ?i rdf:type ontology:Q20667921 }
Émile Rigaud
action filter_type
action find
entity Émile Rigaud
relation place of death
type type of french administrative division
['Émile Rigaud', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?i WHERE { resource:Émile_Rigaud property:place_of_death ?i . ?i rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q47465
SYSTEM
Aix-en-Provence
Q47465
(Q3588718,P20,c(Q20667921))
action filter_type
action find
entity Q3588718
relation P20
type Q20667921
Émile Rigaud expired in [ANSWER]
['Q3588718', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?i WHERE { resource:Q3588718 property:P20 ?i . ?i rdf:type ontology:Q20667921 }
Aix-en-Provence
Émile Rigaud expired in Aix-en-Provence
Aix-en-Provence
action filter_type
action find
entity Émile Rigaud
relation place of death
type type of french administrative division
['Émile Rigaud', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?i WHERE { resource:Émile_Rigaud property:place_of_death ?i . ?i rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q27096205
Q20667921
USER
And what about Henri FRançois Prévost?
(Q27096205,P20,c(Q20667921))
action filter_type
action find
entity Q27096205
relation P20
type Q20667921
['Q27096205', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q27096205 property:P20 ?g . ?g rdf:type ontology:Q20667921 }
Henri FRançois Prévost
action filter_type
action find
entity Henri FRançois Prévost
relation place of death
type type of french administrative division
['Henri FRançois Prévost', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Henri_FRançois_Prévost property:place_of_death ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q42168
SYSTEM
Clermont-Ferrand
Q42168
(Q27096205,P20,c(Q20667921))
action filter_type
action find
entity Q27096205
relation P20
type Q20667921
[ANSWER]
['Q27096205', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q27096205 property:P20 ?g . ?g rdf:type ontology:Q20667921 }
Clermont-Ferrand
Clermont-Ferrand
action filter_type
action find
entity Henri FRançois Prévost
relation place of death
type type of french administrative division
['Henri FRançois Prévost', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Henri_FRançois_Prévost property:place_of_death ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q42168 Q275399
P47
Q20667921
USER
Is Saint-Geniès-de-Fontedit adjacent to that one ?
(Q42168,P47,Q275399)
action is_in
entity Q275399
action find
entity Q42168
relation P47
['Q42168', 'P47', 'Q275399']
ASK WHERE { resource:Q42168 property:P47 resource:Q275399 }
Clermont-Ferrand Saint-Geniès-de-Fontedit
action is_in
entity Saint-Geniès-de-Fontedit
action find
entity Clermont-Ferrand
relation shares border with
['Clermont-Ferrand', 'shares border with', 'Saint-Geniès-de-Fontedit']
ASK WHERE { resource:Clermont-Ferrand property:shares_border_with resource:Saint-Geniès-de-Fontedit }
[]
type of french administrative division
SYSTEM
NO
(Q42168,P47,Q275399)
action is_in
entity Q275399
action find
entity Q42168
relation P47
[ANSWER]
['Q42168', 'P47', 'Q275399']
ASK WHERE { resource:Q42168 property:P47 resource:Q275399 }
No
action is_in
entity Saint-Geniès-de-Fontedit
action find
entity Clermont-Ferrand
relation shares border with
['Clermont-Ferrand', 'shares border with', 'Saint-Geniès-de-Fontedit']
ASK WHERE { resource:Clermont-Ferrand property:shares_border_with resource:Saint-Geniès-de-Fontedit }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q42168
P190
Q56061 Q2074737
USER
How many administrative territories or municipalities of Spain are partner town of Clermont-Ferrand ?
(c(Q56061),P190,Q42168) (c(Q2074737),P190,Q42168)
action count
action union
action filter_type
action find_reverse
entity Q42168
relation P190
type Q56061
action filter_type
action find_reverse
entity Q42168
relation P190
type Q2074737
[{'concept': 'Q56061'}, 'P190', 'Q42168'] [{'concept': 'Q2074737'}, 'P190', 'Q42168']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:P190 resource:Q42168 . ?f rdf:type ontology:Q56061 } UNION { ?f property:P190 resource:Q42168 . ?f rdf:type ontology:Q2074737 } }
Clermont-Ferrand
action count
action union
action filter_type
action find_reverse
entity Clermont-Ferrand
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Clermont-Ferrand
relation sister city
type municipality of Spain
[{'concept': 'administrative territorial entity'}, 'sister city', 'Clermont-Ferrand'] [{'concept': 'municipality of Spain'}, 'sister city', 'Clermont-Ferrand']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:sister_city resource:Clermont-Ferrand . ?f rdf:type ontology:administrative_territorial_entity } UNION { ?f property:sister_city resource:Clermont-Ferrand . ?f rdf:type ontology:municipality_of_Spain } }
[]
administrative territorial entity municipality of Spain
SYSTEM
5
Q40347 Q14317 Q36405 Q2678 Q101625
(c(Q56061),P190,Q42168) (c(Q2074737),P190,Q42168)
action count
action union
action filter_type
action find_reverse
entity Q42168
relation P190
type Q56061
action filter_type
action find_reverse
entity Q42168
relation P190
type Q2074737
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q42168'] [{'concept': 'Q2074737'}, 'P190', 'Q42168']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:P190 resource:Q42168 . ?f rdf:type ontology:Q56061 } UNION { ?f property:P190 resource:Q42168 . ?f rdf:type ontology:Q2074737 } }
Norman Oviedo Aberdeen Gomel Marrakesh
5
action count
action union
action filter_type
action find_reverse
entity Clermont-Ferrand
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Clermont-Ferrand
relation sister city
type municipality of Spain
[{'concept': 'administrative territorial entity'}, 'sister city', 'Clermont-Ferrand'] [{'concept': 'municipality of Spain'}, 'sister city', 'Clermont-Ferrand']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:sister_city resource:Clermont-Ferrand . ?f rdf:type ontology:administrative_territorial_entity } UNION { ?f property:sister_city resource:Clermont-Ferrand . ?f rdf:type ontology:municipality_of_Spain } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P915
Q838948
USER
What were filmed at France ?
(c(Q838948),P915,Q142)
action filter_type
action find_reverse
entity Q142
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q142']
SELECT DISTINCT ?e WHERE { ?e property:P915 resource:Q142 . ?e rdf:type ontology:Q838948 }
France
action filter_type
action find_reverse
entity France
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'France']
SELECT DISTINCT ?e WHERE { ?e property:filming_location resource:France . ?e rdf:type ontology:work_of_art }
[]
work of art
Q19089 Q1383269 Q165847
SYSTEM
GoldenEye, Ex, 102 Dalmatians
Q19089 Q165847 Q1031257 Q1383269
(c(Q838948),P915,Q142)
action filter_type
action find_reverse
entity Q142
relation P915
type Q838948
[ANSWERS] were filmed at France
[{'concept': 'Q838948'}, 'P915', 'Q142']
SELECT DISTINCT ?e WHERE { ?e property:P915 resource:Q142 . ?e rdf:type ontology:Q838948 }
GoldenEye 102 Dalmatians Empire of the Wolves Ex
GoldenEye, Ex and 102 Dalmatians were filmed at France
GoldenEye Ex 102 Dalmatians
action filter_type
action find_reverse
entity France
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'France']
SELECT DISTINCT ?e WHERE { ?e property:filming_location resource:France . ?e rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q19089 Q1383269 Q165847
P364
Q34770
USER
Which languages were used originally for the creation of those works of art ?
(Q19089,P364,c(Q34770)) (Q1383269,P364,c(Q34770)) (Q165847,P364,c(Q34770))
action filter_type
action find
entity prev_answer
relation P364
type Q34770
['Q19089', 'P364', {'concept': 'Q34770'}] ['Q1383269', 'P364', {'concept': 'Q34770'}] ['Q165847', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { ?k property:P364 ?u . ?u rdf:type ontology:Q34770 . VALUES ( ?k ) { ( resource:Q19089 ) ( resource:Q165847 ) ( resource:Q1031257 ) } }
GoldenEye Ex 102 Dalmatians
action filter_type
action find
entity prev_answer
relation original language of work
type language
['GoldenEye', 'original language of work', {'concept': 'language'}] ['Ex', 'original language of work', {'concept': 'language'}] ['102 Dalmatians', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { ?k property:original_language_of_work ?u . ?u rdf:type ontology:language . VALUES ( ?k ) { ( resource:GoldenEye ) ( resource:102_Dalmatians ) ( resource:Empire_of_the_Wolves ) } }
[]
language
Q1860 Q652 Q1860
SYSTEM
Italian for 2nd, English for 1st, 3rd
Q1860 Q652 Q1860
(Q19089,P364,c(Q34770)) (Q1383269,P364,c(Q34770)) (Q165847,P364,c(Q34770))
action filter_type
action find
entity prev_answer
relation P364
type Q34770
[ANSWERS]
['Q19089', 'P364', {'concept': 'Q34770'}] ['Q1383269', 'P364', {'concept': 'Q34770'}] ['Q165847', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { ?k property:P364 ?u . ?u rdf:type ontology:Q34770 . VALUES ( ?k ) { ( resource:Q19089 ) ( resource:Q165847 ) ( resource:Q1031257 ) } }
English Italian English
English, Italian and English were used originally for the creation of those works of art
English Italian English
action filter_type
action find
entity prev_answer
relation original language of work
type language
['GoldenEye', 'original language of work', {'concept': 'language'}] ['Ex', 'original language of work', {'concept': 'language'}] ['102 Dalmatians', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { ?k property:original_language_of_work ?u . ?u rdf:type ontology:language . VALUES ( ?k ) { ( resource:GoldenEye ) ( resource:102_Dalmatians ) ( resource:Empire_of_the_Wolves ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1860
P921
Q21114848
USER
Which magazine genre has that language as its main topic ?
(c(Q21114848),P921,Q1860)
action filter_type
action find_reverse
entity Q1860
relation P921
type Q21114848
[{'concept': 'Q21114848'}, 'P921', 'Q1860']
SELECT DISTINCT ?s WHERE { ?s property:P921 resource:Q1860 . ?s rdf:type ontology:Q21114848 }
English
action filter_type
action find_reverse
entity English
relation main subject
type magazine genre
[{'concept': 'magazine genre'}, 'main subject', 'English']
SELECT DISTINCT ?s WHERE { ?s property:main_subject resource:English . ?s rdf:type ontology:magazine_genre }
[]
magazine genre
Clarification for simple ques.
Q1860
SYSTEM
Did you mean English ?
Q1860 Q652 Q1860
(c(Q21114848),P921,Q1860) (c(Q21114848),P921,Q652) (c(Q21114848),P921,Q1860)
[ANSWER]
[{'concept': 'Q21114848'}, 'P921', 'Q1860'] [{'concept': 'Q21114848'}, 'P921', 'Q652'] [{'concept': 'Q21114848'}, 'P921', 'Q1860']
SELECT DISTINCT ?s WHERE { ?s property:P921 resource:Q1860 . ?s rdf:type ontology:Q21114848 }
English Italian English
Did you mean English ?
English
[{'concept': 'magazine genre'}, 'main subject', 'English'] [{'concept': 'magazine genre'}, 'main subject', 'Italian'] [{'concept': 'magazine genre'}, 'main subject', 'English']
SELECT DISTINCT ?s WHERE { ?s property:main_subject resource:English . ?s rdf:type ontology:magazine_genre }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q21114848),P921,Q1860)
[{'concept': 'Q21114848'}, 'P921', 'Q1860']
[{'concept': 'magazine genre'}, 'main subject', 'English']
[]
Q7050706
SYSTEM
Nordic Journal of English Studies
Q7050706
(c(Q21114848),P921,Q1860)
action filter_type
action find_reverse
entity Q1860
relation P921
type Q21114848
[ANSWER] has that language as its main topic
[{'concept': 'Q21114848'}, 'P921', 'Q1860']
SELECT DISTINCT ?s WHERE { ?s property:P921 resource:Q1860 . ?s rdf:type ontology:Q21114848 }
Nordic Journal of English Studies
Nordic Journal of English Studies has that language as its main topic
Nordic Journal of English Studies
action filter_type
action find_reverse
entity English
relation main subject
type magazine genre
[{'concept': 'magazine genre'}, 'main subject', 'English']
SELECT DISTINCT ?s WHERE { ?s property:main_subject resource:English . ?s rdf:type ontology:magazine_genre }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P291
Q56061 Q21114848
USER
Which administrative territories were max number of magazine genres published ?
(c(Q21114848),P291,Q1085)
action argmax
action find_reverse_tuple_counts
relation P291
type Q56061
type Q21114848
[{'concept': 'Q21114848'}, 'P291', 'Q1085']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?d ) WHERE { ?b property:P291 ?m . ?b rdf:type ontology:Q21114848 . ?m rdf:type ontology:Q56061 } GROUP BY ?m } } . { SELECT DISTINCT ?f ( COUNT ( ?c ) AS ?j ) WHERE { ?f rdf:type ontology:Q56061 . ?c rdf:type ontology:Q21114848 . ?c property:P291 ?f } GROUP BY ?f } . FILTER ( ?j = ?w ) }
action argmax
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type magazine genre
[{'concept': 'magazine genre'}, 'place of publication', 'Prague']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?d ) WHERE { ?b property:place_of_publication ?m . ?b rdf:type ontology:magazine_genre . ?m rdf:type ontology:administrative_territorial_entity } GROUP BY ?m } } . { SELECT DISTINCT ?f ( COUNT ( ?c ) AS ?j ) WHERE { ?f rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:magazine_genre . ?c property:place_of_publication ?f } GROUP BY ?f } . FILTER ( ?j = ?w ) }
[]
administrative territorial entity magazine genre
Q60
SYSTEM
New York City
Q60
(c(Q21114848),P291,Q1085)
action argmax
action find_reverse_tuple_counts
relation P291
type Q56061
type Q21114848
[ANSWER] was max number of magazine genres published
[{'concept': 'Q21114848'}, 'P291', 'Q1085']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?d ) WHERE { ?b property:P291 ?m . ?b rdf:type ontology:Q21114848 . ?m rdf:type ontology:Q56061 } GROUP BY ?m } } . { SELECT DISTINCT ?f ( COUNT ( ?c ) AS ?j ) WHERE { ?f rdf:type ontology:Q56061 . ?c rdf:type ontology:Q21114848 . ?c property:P291 ?f } GROUP BY ?f } . FILTER ( ?j = ?w ) }
New York City
New York City was max number of magazine genres published
New York City
action argmax
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type magazine genre
[{'concept': 'magazine genre'}, 'place of publication', 'Prague']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?d ) WHERE { ?b property:place_of_publication ?m . ?b rdf:type ontology:magazine_genre . ?m rdf:type ontology:administrative_territorial_entity } GROUP BY ?m } } . { SELECT DISTINCT ?f ( COUNT ( ?c ) AS ?j ) WHERE { ?f rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:magazine_genre . ?c property:place_of_publication ?f } GROUP BY ?f } . FILTER ( ?j = ?w ) }
[]