Simple Question (Direct)
Simple Question
Q678643
P58
Q502895
USER
Who was the screenwriter for Elena ?
(Q678643,P58,c(Q502895))
action filter_type
action find
entity Q678643
relation P58
type Q502895
['Q678643', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q678643 property:P58 ?z . ?z rdf:type ontology:Q502895 }
Elena
action filter_type
action find
entity Elena
relation screenwriter
type common name
['Elena', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Elena property:screenwriter ?z . ?z rdf:type ontology:common_name }
[]
common name
Q4315936
SYSTEM
Oleg Negin
Q4315936
(Q678643,P58,c(Q502895))
action filter_type
action find
entity Q678643
relation P58
type Q502895
The screenwriter for Elena was awarded [ANSWER]
['Q678643', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q678643 property:P58 ?z . ?z rdf:type ontology:Q502895 }
Oleg Negin
The screenwriter for Elena was awarded Oleg Negin
Oleg Negin
action filter_type
action find
entity Elena
relation screenwriter
type common name
['Elena', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Elena property:screenwriter ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q678643
P57
Q502895
USER
Who was Elena directed by ?
(Q678643,P57,c(Q502895))
action filter_type
action find
entity Q678643
relation P57
type Q502895
['Q678643', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q678643 property:P57 ?t . ?t rdf:type ontology:Q502895 }
Elena
action filter_type
action find
entity Elena
relation director
type common name
['Elena', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Elena property:director ?t . ?t rdf:type ontology:common_name }
[]
common name
Q122425
SYSTEM
Andrey Zvyagintsev
Q122425
(Q678643,P57,c(Q502895))
action filter_type
action find
entity Q678643
relation P57
type Q502895
Elena was directed by [ANSWER] by
['Q678643', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q678643 property:P57 ?t . ?t rdf:type ontology:Q502895 }
Andrey Zvyagintsev
Elena was directed by Andrey Zvyagintsev by
Andrey Zvyagintsev
action filter_type
action find
entity Elena
relation director
type common name
['Elena', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Elena property:director ?t . ?t rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q122425 Q15972383
P58
Q838948
USER
Is that person a screenwriter of Leviathan ?
(Q15972383,P58,Q122425)
action is_in
entity Q122425
action find
entity Q15972383
relation P58
['Q15972383', 'P58', 'Q122425']
ASK WHERE { resource:Q15972383 property:P58 resource:Q122425 }
Andrey Zvyagintsev Leviathan
action is_in
entity Andrey Zvyagintsev
action find
entity Leviathan
relation screenwriter
['Leviathan', 'screenwriter', 'Andrey Zvyagintsev']
ASK WHERE { resource:Leviathan property:screenwriter resource:Andrey_Zvyagintsev }
[]
work of art
SYSTEM
YES
(Q15972383,P58,Q122425)
action is_in
entity Q122425
action find
entity Q15972383
relation P58
[ANSWER]
['Q15972383', 'P58', 'Q122425']
ASK WHERE { resource:Q15972383 property:P58 resource:Q122425 }
Yes
action is_in
entity Andrey Zvyagintsev
action find
entity Leviathan
relation screenwriter
['Leviathan', 'screenwriter', 'Andrey Zvyagintsev']
ASK WHERE { resource:Leviathan property:screenwriter resource:Andrey_Zvyagintsev }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q678643 Q159
P495
Q15617994
USER
Is Russia the country of origin of Elena ?
(Q678643,P495,Q159)
action is_in
entity Q159
action find
entity Q678643
relation P495
['Q678643', 'P495', 'Q159']
ASK WHERE { resource:Q678643 property:P495 resource:Q159 }
Elena Russia
action is_in
entity Russia
action find
entity Elena
relation country of origin
['Elena', 'country of origin', 'Russia']
ASK WHERE { resource:Elena property:country_of_origin resource:Russia }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q678643,P495,Q159)
action is_in
entity Q159
action find
entity Q678643
relation P495
[ANSWER]
['Q678643', 'P495', 'Q159']
ASK WHERE { resource:Q678643 property:P495 resource:Q159 }
Yes
action is_in
entity Russia
action find
entity Elena
relation country of origin
['Elena', 'country of origin', 'Russia']
ASK WHERE { resource:Elena property:country_of_origin resource:Russia }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q4315936 Q8704
P58
Q201658
USER
How many film genres have Oleg Negin or Walt Disney as screenwriter ?
(c(Q201658),P58,Q4315936) (c(Q201658),P58,Q8704)
action count
action union
action filter_type
action find_reverse
entity Q4315936
relation P58
type Q201658
action filter_type
action find_reverse
entity Q8704
relation P58
type Q201658
[{'concept': 'Q201658'}, 'P58', 'Q4315936'] [{'concept': 'Q201658'}, 'P58', 'Q8704']
SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:P58 ?r . VALUES ( ?r ) { ( resource:Q4315936 ) ( resource:Q8704 ) } }
Oleg Negin Walt Disney
action count
action union
action filter_type
action find_reverse
entity Oleg Negin
relation screenwriter
type film genre
action filter_type
action find_reverse
entity Walt Disney
relation screenwriter
type film genre
[{'concept': 'film genre'}, 'screenwriter', 'Oleg Negin'] [{'concept': 'film genre'}, 'screenwriter', 'Walt Disney']
SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:screenwriter ?r . VALUES ( ?r ) { ( resource:Oleg_Negin ) ( resource:Walt_Disney ) } }
[]
film genre
SYSTEM
2
Q816038 Q1753096
(c(Q201658),P58,Q4315936) (c(Q201658),P58,Q8704)
action count
action union
action filter_type
action find_reverse
entity Q4315936
relation P58
type Q201658
action filter_type
action find_reverse
entity Q8704
relation P58
type Q201658
[ANSWER]
[{'concept': 'Q201658'}, 'P58', 'Q4315936'] [{'concept': 'Q201658'}, 'P58', 'Q8704']
SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:P58 ?r . VALUES ( ?r ) { ( resource:Q4315936 ) ( resource:Q8704 ) } }
Steamboat Willie Plane Crazy
2
action count
action union
action filter_type
action find_reverse
entity Oleg Negin
relation screenwriter
type film genre
action filter_type
action find_reverse
entity Walt Disney
relation screenwriter
type film genre
[{'concept': 'film genre'}, 'screenwriter', 'Oleg Negin'] [{'concept': 'film genre'}, 'screenwriter', 'Walt Disney']
SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:screenwriter ?r . VALUES ( ?r ) { ( resource:Oleg_Negin ) ( resource:Walt_Disney ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3565690 Q4315936
P19
Q56061
USER
Which administrative territories are the birthplace of Oleg Negin or Walter Bogaerts ?
OR((Q4315936,P19,c(Q56061)), (Q3565690,P19,c(Q56061)))
action filter_type
action union
action find
entity Q4315936
relation P19
action find
entity Q3565690
relation P19
type Q56061
{'OR': [['Q4315936', 'P19', {'concept': 'Q56061'}], ['Q3565690', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . { ?d property:P19 ?a . VALUES ( ?d ) { ( resource:Q3565690 ) ( resource:Q4315936 ) } } }
Walter Bogaerts Oleg Negin
action filter_type
action union
action find
entity Oleg Negin
relation place of birth
action find
entity Walter Bogaerts
relation place of birth
type administrative territorial entity
{'OR': [['Oleg Negin', 'place of birth', {'concept': 'administrative territorial entity'}], ['Walter Bogaerts', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . { ?d property:place_of_birth ?a . VALUES ( ?d ) { ( resource:Walter_Bogaerts ) ( resource:Oleg_Negin ) } } }
[]
administrative territorial entity
Q649 Q12460
SYSTEM
Moscow, Lier
Q649 Q12460
OR((Q4315936,P19,c(Q56061)), (Q3565690,P19,c(Q56061)))
action filter_type
action union
action find
entity Q4315936
relation P19
action find
entity Q3565690
relation P19
type Q56061
[ANSWERS] are the birthplace of Oleg Negin or Walter Bogaerts
{'OR': [['Q4315936', 'P19', {'concept': 'Q56061'}], ['Q3565690', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . { ?d property:P19 ?a . VALUES ( ?d ) { ( resource:Q3565690 ) ( resource:Q4315936 ) } } }
Moscow Lier
Moscow and Lier are the birthplace of Oleg Negin or Walter Bogaerts
Moscow Lier
action filter_type
action union
action find
entity Oleg Negin
relation place of birth
action find
entity Walter Bogaerts
relation place of birth
type administrative territorial entity
{'OR': [['Oleg Negin', 'place of birth', {'concept': 'administrative territorial entity'}], ['Walter Bogaerts', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . { ?d property:place_of_birth ?a . VALUES ( ?d ) { ( resource:Walter_Bogaerts ) ( resource:Oleg_Negin ) } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P190
Q56061 Q13220204
USER
How many administrative territories or administrative country subdivisions are sister town of that administrative territory ?
(c(Q56061),P190,Q649) (c(Q13220204),P190,Q649) (c(Q56061),P190,Q649) (c(Q13220204),P190,Q649) (c(Q56061),P190,Q12460) (c(Q13220204),P190,Q12460)
[{'concept': 'Q56061'}, 'P190', 'Q649'] [{'concept': 'Q13220204'}, 'P190', 'Q649'] [{'concept': 'Q56061'}, 'P190', 'Q649'] [{'concept': 'Q13220204'}, 'P190', 'Q649'] [{'concept': 'Q56061'}, 'P190', 'Q12460'] [{'concept': 'Q13220204'}, 'P190', 'Q12460']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P190 resource:Q499927 } UNION { ?y property:P190 resource:Q499927 } UNION { ?z property:P190 resource:Q499927 } UNION { ?y property:P190 resource:Q499927 } UNION { ?z property:P190 resource:Q488607 } UNION { ?y property:P190 resource:Q488607 } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q13220204 }
[{'concept': 'administrative territorial entity'}, 'sister city', 'Moscow'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Moscow'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Moscow'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Moscow'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Lier'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Lier']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sister_city resource:Moscow } UNION { ?y property:sister_city resource:Moscow } UNION { ?z property:sister_city resource:Moscow } UNION { ?y property:sister_city resource:Moscow } UNION { ?z property:sister_city resource:Lier } UNION { ?y property:sister_city resource:Lier } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:second-level_administrative_country_subdivision }
[]
administrative territorial entity second-level administrative country subdivision
Quantitative|Count|Mult. entity type|Clarification
Q12460
SYSTEM
Did you mean Lier ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P190 resource:Q499927 } UNION { ?y property:P190 resource:Q499927 } UNION { ?z property:P190 resource:Q499927 } UNION { ?y property:P190 resource:Q499927 } UNION { ?z property:P190 resource:Q488607 } UNION { ?y property:P190 resource:Q488607 } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q13220204 }
Did you mean Lier ?
Lier
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sister_city resource:Moscow } UNION { ?y property:sister_city resource:Moscow } UNION { ?z property:sister_city resource:Moscow } UNION { ?y property:sister_city resource:Moscow } UNION { ?z property:sister_city resource:Lier } UNION { ?y property:sister_city resource:Lier } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:second-level_administrative_country_subdivision }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Moscow. Could you tell me the answer for that?
(c(Q56061),P190,Q649) (c(Q13220204),P190,Q649) (c(Q56061),P190,Q649) (c(Q13220204),P190,Q649) (c(Q56061),P190,Q12460) (c(Q13220204),P190,Q12460)
Q649
[{'concept': 'Q56061'}, 'P190', 'Q649'] [{'concept': 'Q13220204'}, 'P190', 'Q649'] [{'concept': 'Q56061'}, 'P190', 'Q649'] [{'concept': 'Q13220204'}, 'P190', 'Q649'] [{'concept': 'Q56061'}, 'P190', 'Q12460'] [{'concept': 'Q13220204'}, 'P190', 'Q12460']
[{'concept': 'administrative territorial entity'}, 'sister city', 'Moscow'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Moscow'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Moscow'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Moscow'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Lier'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Lier']
[]
SYSTEM
52
Q41572 Q437 Q131290 Q994 Q807 Q987 Q1353 Q727 Q472 Q23564 Q179830 Q13498 Q178373 Q42308 Q1770 Q1718 Q18808 Q1297 Q25409 Q156711 Q9899 Q1524 Q1780 Q1520 Q1741 Q64 Q3630 Q140147 Q33935 Q3640 Q3561 Q1490 Q5582862 Q84 Q85 Q216 Q1218 Q1861 Q133026 Q486282 Q43070 Q270 Q239 Q2807 Q956 Q196678 Q3805 Q1491 Q19566 Q3820 Q186576 Q1085
(c(Q56061),P190,Q649) (c(Q13220204),P190,Q649) (c(Q56061),P190,Q649) (c(Q13220204),P190,Q649) (c(Q56061),P190,Q12460) (c(Q13220204),P190,Q12460)
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q649'] [{'concept': 'Q13220204'}, 'P190', 'Q649'] [{'concept': 'Q56061'}, 'P190', 'Q649'] [{'concept': 'Q13220204'}, 'P190', 'Q649'] [{'concept': 'Q56061'}, 'P190', 'Q12460'] [{'concept': 'Q13220204'}, 'P190', 'Q12460']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P190 resource:Q499927 } UNION { ?y property:P190 resource:Q499927 } UNION { ?z property:P190 resource:Q499927 } UNION { ?y property:P190 resource:Q499927 } UNION { ?z property:P190 resource:Q488607 } UNION { ?y property:P190 resource:Q488607 } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q13220204 }
Mykolaiv Ljubljana Ganja Tbilisi Lausanne New Delhi Delhi Amsterdam Sofia Podgorica Jelgava Taranto Rasht Kharkiv Tallinn Düsseldorf Pyongyang Chicago Košice Uzhhorod Amsterdam Athens Bratislava Astana Vienna Berlin Jakarta Brest Tel Aviv Ankara Algiers Tokyo Cusco London Cairo Vilnius Jerusalem Bangkok Kolomna Pavlodar Donetsk Warsaw Brussels Madrid Beijing Torzhok Amman La Paz Simferopol Beirut Pazardzhik Prague
52
[{'concept': 'administrative territorial entity'}, 'sister city', 'Moscow'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Moscow'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Moscow'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Moscow'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Lier'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Lier']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sister_city resource:Moscow } UNION { ?y property:sister_city resource:Moscow } UNION { ?z property:sister_city resource:Moscow } UNION { ?y property:sister_city resource:Moscow } UNION { ?z property:sister_city resource:Lier } UNION { ?y property:sister_city resource:Lier } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:second-level_administrative_country_subdivision }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q649
P138
Q811979 Q7725634
USER
How many architectural structures and literary works are named after Moscow ?
(c(Q811979),P138,Q649) (c(Q7725634),P138,Q649)
action count
action union
action filter_type
action find_reverse
entity Q649
relation P138
type Q811979
action filter_type
action find_reverse
entity Q649
relation P138
type Q7725634
[{'concept': 'Q811979'}, 'P138', 'Q649'] [{'concept': 'Q7725634'}, 'P138', 'Q649']
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { VALUES ( ?i ) { ( ontology:Q811979 ) ( ontology:Q7725634 ) } . ?u rdf:type ?i }
Moscow
action count
action union
action filter_type
action find_reverse
entity Moscow
relation named after
type architectural structure
action filter_type
action find_reverse
entity Moscow
relation named after
type literary work
[{'concept': 'architectural structure'}, 'named after', 'Moscow'] [{'concept': 'literary work'}, 'named after', 'Moscow']
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { VALUES ( ?i ) { ( ontology:architectural_structure ) ( ontology:literary_work ) } . ?u rdf:type ?i }
[]
architectural structure literary work
SYSTEM
1 architectural structures and 1 literary works
Q2398452 Q767163
(c(Q811979),P138,Q649) (c(Q7725634),P138,Q649)
action count
action union
action filter_type
action find_reverse
entity Q649
relation P138
type Q811979
action filter_type
action find_reverse
entity Q649
relation P138
type Q7725634
[ANSWER]
[{'concept': 'Q811979'}, 'P138', 'Q649'] [{'concept': 'Q7725634'}, 'P138', 'Q649']
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { VALUES ( ?i ) { ( ontology:Q811979 ) ( ontology:Q7725634 ) } . ?u rdf:type ?i }
Moya Moskva Széll Kálmán tér
1 architectural structures and 1 literary works
action count
action union
action filter_type
action find_reverse
entity Moscow
relation named after
type architectural structure
action filter_type
action find_reverse
entity Moscow
relation named after
type literary work
[{'concept': 'architectural structure'}, 'named after', 'Moscow'] [{'concept': 'literary work'}, 'named after', 'Moscow']
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { VALUES ( ?i ) { ( ontology:architectural_structure ) ( ontology:literary_work ) } . ?u rdf:type ?i }
[]