Simple Question (Direct)
Simple Question
Q3523132
P86
Q502895
USER
Who wrote the music for The Two Faces of January ?
(Q3523132,P86,c(Q502895))
action filter_type
action find
entity Q3523132
relation P86
type Q502895
['Q3523132', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q3523132 property:P86 ?z . ?z rdf:type ontology:Q502895 }
The Two Faces of January
action filter_type
action find
entity The Two Faces of January
relation composer
type common name
['The Two Faces of January', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:The_Two_Faces_of_January property:composer ?z . ?z rdf:type ontology:common_name }
[]
common name
Q335515
SYSTEM
Alberto Iglesias
Q335515
(Q3523132,P86,c(Q502895))
action filter_type
action find
entity Q3523132
relation P86
type Q502895
[ANSWER] wrote the music for The Two Faces of January
['Q3523132', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q3523132 property:P86 ?z . ?z rdf:type ontology:Q502895 }
Alberto Iglesias
Alberto Iglesias wrote the music for The Two Faces of January
Alberto Iglesias
action filter_type
action find
entity The Two Faces of January
relation composer
type common name
['The Two Faces of January', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:The_Two_Faces_of_January property:composer ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3523132
P58
Q502895
USER
Who was the screenwriter for that work of art ?
(Q335515,P58,c(Q502895))
action filter_type
action find
entity Q3523132
relation P58
type Q502895
['Q335515', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q3523132 property:P58 ?f . ?f rdf:type ontology:Q502895 }
The Two Faces of January
action filter_type
action find
entity The Two Faces of January
relation screenwriter
type common name
['Alberto Iglesias', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:The_Two_Faces_of_January property:screenwriter ?f . ?f rdf:type ontology:common_name }
[]
common name
Q1371315
SYSTEM
Hossein Amini
Q1371315
(Q335515,P58,c(Q502895))
action filter_type
action find
entity Q3523132
relation P58
type Q502895
The screenwriter for that work of art was Mirza [ANSWER]
['Q335515', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q3523132 property:P58 ?f . ?f rdf:type ontology:Q502895 }
Hossein Amini
The screenwriter for that work of art was Mirza Hossein Amini
Hossein Amini
action filter_type
action find
entity The Two Faces of January
relation screenwriter
type common name
['Alberto Iglesias', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:The_Two_Faces_of_January property:screenwriter ?f . ?f rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16233522 Q1371315
P19
Q15617994
USER
Which administrative territories are the birthplace of Hossein Amini or Roberto Romeo ?
OR((Q1371315,P19,c(Q15617994)), (Q16233522,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q1371315
relation P19
action find
entity Q16233522
relation P19
type Q15617994
{'OR': [['Q1371315', 'P19', {'concept': 'Q15617994'}], ['Q16233522', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . { VALUES ( ?z ) { ( resource:Q1371315 ) ( resource:Q16233522 ) } . ?z property:P19 ?f } }
Roberto Romeo Hossein Amini
action filter_type
action union
action find
entity Hossein Amini
relation place of birth
action find
entity Roberto Romeo
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Hossein Amini', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Roberto Romeo', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?z ) { ( resource:Hossein_Amini ) ( resource:Roberto_Romeo ) } . ?z property:place_of_birth ?f } }
[]
designation for an administrative territorial entity
Q794 Q53723
SYSTEM
Iran, Soverato
Q794 Q53723
OR((Q1371315,P19,c(Q15617994)), (Q16233522,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q1371315
relation P19
action find
entity Q16233522
relation P19
type Q15617994
[ANSWERS] are the birthplace of Hossein Amini or Roberto Romeo
{'OR': [['Q1371315', 'P19', {'concept': 'Q15617994'}], ['Q16233522', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . { VALUES ( ?z ) { ( resource:Q1371315 ) ( resource:Q16233522 ) } . ?z property:P19 ?f } }
Iran Soverato
Iran and Soverato are the birthplace of Hossein Amini or Roberto Romeo
Iran Soverato
action filter_type
action union
action find
entity Hossein Amini
relation place of birth
action find
entity Roberto Romeo
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Hossein Amini', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Roberto Romeo', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?z ) { ( resource:Hossein_Amini ) ( resource:Roberto_Romeo ) } . ?z property:place_of_birth ?f } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P19
Q502895
USER
How many people were born at that administrative territory ?
(c(Q502895),P19,Q53723)
[{'concept': 'Q502895'}, 'P19', 'Q53723']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q1322263 resource:Q53723 . ?z rdf:type ontology:Q502895 }
[{'concept': 'common name'}, 'place of birth', 'Soverato']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_birth resource:Soverato . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q794
SYSTEM
Did you mean Iran ?
(c(Q502895),P19,Q794) (c(Q502895),P19,Q53723)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q794'] [{'concept': 'Q502895'}, 'P19', 'Q53723']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q1322263 resource:Q53723 . ?z rdf:type ontology:Q502895 }
Did you mean Iran ?
Iran
[{'concept': 'common name'}, 'place of birth', 'Iran'] [{'concept': 'common name'}, 'place of birth', 'Soverato']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_birth resource:Soverato . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Soverato. Could you tell me the answer for that?
(c(Q502895),P19,Q53723)
Q53723
[{'concept': 'Q502895'}, 'P19', 'Q53723']
[{'concept': 'common name'}, 'place of birth', 'Soverato']
[]
SYSTEM
7
Q3745126 Q3723234 Q16233522 Q3750647 Q3779249 Q3764104 Q17630971
(c(Q502895),P19,Q53723)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q53723']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q1322263 resource:Q53723 . ?z rdf:type ontology:Q502895 }
Filippo Caminiti Elisabetta Gregoraci Roberto Romeo Francesco Scorsa Guido Daniele Gigi Peronace Francesco Scoppa
7
[{'concept': 'common name'}, 'place of birth', 'Soverato']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_birth resource:Soverato . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q794
P488
Q7210356
USER
What is Iran a chairperson of ?
(c(Q7210356),P488,Q794)
action filter_type
action find_reverse
entity Q794
relation P488
type Q7210356
[{'concept': 'Q7210356'}, 'P488', 'Q794']
SELECT DISTINCT ?i WHERE { ?i property:P488 resource:Q794 . ?i rdf:type ontology:Q7210356 }
Iran
action filter_type
action find_reverse
entity Iran
relation chairperson
type political organization
[{'concept': 'political organization'}, 'chairperson', 'Iran']
SELECT DISTINCT ?i WHERE { ?i property:chairperson resource:Iran . ?i rdf:type ontology:political_organization }
[]
political organization
Q15911893
SYSTEM
Socialist Workers’ Party of Iran
Q15911893
(c(Q7210356),P488,Q794)
action filter_type
action find_reverse
entity Q794
relation P488
type Q7210356
Iran is a chairperson of [ANSWER]
[{'concept': 'Q7210356'}, 'P488', 'Q794']
SELECT DISTINCT ?i WHERE { ?i property:P488 resource:Q794 . ?i rdf:type ontology:Q7210356 }
Socialist Workers’ Party of Iran
Iran is a chairperson of Socialist Workers’ Party of Iran
Socialist Workers’ Party of Iran
action filter_type
action find_reverse
entity Iran
relation chairperson
type political organization
[{'concept': 'political organization'}, 'chairperson', 'Iran']
SELECT DISTINCT ?i WHERE { ?i property:chairperson resource:Iran . ?i rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q794
P176
Q41291
USER
What was produced by that administrative territory ?
(c(Q41291),P176,Q15911893)
action filter_type
action find_reverse
entity Q794
relation P176
type Q41291
[{'concept': 'Q41291'}, 'P176', 'Q15911893']
SELECT DISTINCT ?s WHERE { ?s property:P176 resource:Q794 . ?s rdf:type ontology:Q41291 }
Iran
action filter_type
action find_reverse
entity Iran
relation manufacturer
type rocket
[{'concept': 'rocket'}, 'manufacturer', 'Socialist Workers’ Party of Iran']
SELECT DISTINCT ?s WHERE { ?s property:manufacturer resource:Iran . ?s rdf:type ontology:rocket }
[]
rocket
Q3445293
SYSTEM
Ashoura
Q3445293
(c(Q41291),P176,Q15911893)
action filter_type
action find_reverse
entity Q794
relation P176
type Q41291
[ANSWER] was produced by that administrative territory
[{'concept': 'Q41291'}, 'P176', 'Q15911893']
SELECT DISTINCT ?s WHERE { ?s property:P176 resource:Q794 . ?s rdf:type ontology:Q41291 }
Ashoura
Ashoura was produced by that administrative territory
Ashoura
action filter_type
action find_reverse
entity Iran
relation manufacturer
type rocket
[{'concept': 'rocket'}, 'manufacturer', 'Socialist Workers’ Party of Iran']
SELECT DISTINCT ?s WHERE { ?s property:manufacturer resource:Iran . ?s rdf:type ontology:rocket }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P520
Q41291 Q2235308
USER
How many ship types have around 1 rocket as their weapon ?
(c(Q2235308),P520,c(Q41291))
action count
action approx
action find_tuple_counts
relation P520
type Q2235308
type Q41291
value 1
[{'concept': 'Q2235308'}, 'P520', {'concept': 'Q41291'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?v ) AS ?t ) WHERE { ?v rdf:type ontology:Q41291 . ?y rdf:type ontology:Q2235308 . ?y property:P520 ?v } GROUP BY ?y } . FILTER ( ?t = 1 ) }
action count
action approx
action find_tuple_counts
relation armament
type ship type
type rocket
value 1
[{'concept': 'ship type'}, 'armament', {'concept': 'rocket'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?v ) AS ?t ) WHERE { ?v rdf:type ontology:rocket . ?y rdf:type ontology:ship_type . ?y property:armament ?v } GROUP BY ?y } . FILTER ( ?t = 1 ) }
[]
rocket ship type
SYSTEM
1
Q928457
(c(Q2235308),P520,c(Q41291))
action count
action approx
action find_tuple_counts
relation P520
type Q2235308
type Q41291
value 1
[ANSWER]
[{'concept': 'Q2235308'}, 'P520', {'concept': 'Q41291'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?v ) AS ?t ) WHERE { ?v rdf:type ontology:Q41291 . ?y rdf:type ontology:Q2235308 . ?y property:P520 ?v } GROUP BY ?y } . FILTER ( ?t = 1 ) }
Kiev-class aircraft carrier
1
action count
action approx
action find_tuple_counts
relation armament
type ship type
type rocket
value 1
[{'concept': 'ship type'}, 'armament', {'concept': 'rocket'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?v ) AS ?t ) WHERE { ?v rdf:type ontology:rocket . ?y rdf:type ontology:ship_type . ?y property:armament ?v } GROUP BY ?y } . FILTER ( ?t = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1371315
P106
Q28640
USER
What are the professions of Hossein Amini ?
(Q1371315,P106,c(Q28640))
action filter_type
action find
entity Q1371315
relation P106
type Q28640
['Q1371315', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q28640 . resource:Q1371315 property:P106 ?a }
Hossein Amini
action filter_type
action find
entity Hossein Amini
relation occupation
type profession
['Hossein Amini', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:profession . resource:Hossein_Amini property:occupation ?a }
[]
profession
Q2526255 Q28389
SYSTEM
film director, screenwriter
Q2526255 Q28389
(Q1371315,P106,c(Q28640))
action filter_type
action find
entity Q1371315
relation P106
type Q28640
The professions of Hossein Amini are a [ANSWERS]
['Q1371315', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q28640 . resource:Q1371315 property:P106 ?a }
film director screenwriter
The professions of Hossein Amini are a film director and screenwriter
film director screenwriter
action filter_type
action find
entity Hossein Amini
relation occupation
type profession
['Hossein Amini', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:profession . resource:Hossein_Amini property:occupation ?a }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2526255 Q28389
P39
Q502895
USER
Who held the position of those professions ?
(c(Q502895),P39,Q2526255) (c(Q502895),P39,Q28389)
action filter_type
action find_reverse
entity prev_answer
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q2526255'] [{'concept': 'Q502895'}, 'P39', 'Q28389']
SELECT DISTINCT ?g WHERE { ?g property:P39 ?c . ?g rdf:type ontology:Q502895 . VALUES ( ?c ) { ( resource:Q2526255 ) ( resource:Q28389 ) } }
film director screenwriter
action filter_type
action find_reverse
entity prev_answer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'film director'] [{'concept': 'common name'}, 'position held', 'screenwriter']
SELECT DISTINCT ?g WHERE { ?g property:position_held ?c . ?g rdf:type ontology:common_name . VALUES ( ?c ) { ( resource:film_director ) ( resource:screenwriter ) } }
[]
common name
Q3446637 Q3446637 Q20630782
SYSTEM
Ruddy Pomarède for 1st, 2nd, Émilie Sengelin for 3rd
Q20630782 Q21575014 Q3446637 Q20630782 Q3446637
(c(Q502895),P39,Q2526255) (c(Q502895),P39,Q28389)
action filter_type
action find_reverse
entity prev_answer
relation P39
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P39', 'Q2526255'] [{'concept': 'Q502895'}, 'P39', 'Q28389']
SELECT DISTINCT ?g WHERE { ?g property:P39 ?c . ?g rdf:type ontology:Q502895 . VALUES ( ?c ) { ( resource:Q2526255 ) ( resource:Q28389 ) } }
Émilie Sengelin Mollie Miller Ruddy Pomarède Émilie Sengelin Ruddy Pomarède
Ruddy Pomarède, Ruddy Pomarède and Émilie Sengelin held the position of those professions
Ruddy Pomarède Ruddy Pomarède Émilie Sengelin
action filter_type
action find_reverse
entity prev_answer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'film director'] [{'concept': 'common name'}, 'position held', 'screenwriter']
SELECT DISTINCT ?g WHERE { ?g property:position_held ?c . ?g rdf:type ontology:common_name . VALUES ( ?c ) { ( resource:film_director ) ( resource:screenwriter ) } }
[]