Simple Question (Direct)
Simple Question
Q12956094
P800
Q15416
USER
What was notable work done by Aleksandar Stanković ?
(Q12956094,P800,c(Q15416))
action filter_type
action find
entity Q12956094
relation P800
type Q15416
['Q12956094', 'P800', {'concept': 'Q15416'}]
SELECT DISTINCT ?b WHERE { resource:Q12956094 property:P800 ?b . ?b rdf:type ontology:Q15416 }
Aleksandar Stanković
action filter_type
action find
entity Aleksandar Stanković
relation notable work
type television program
['Aleksandar Stanković', 'notable work', {'concept': 'television program'}]
SELECT DISTINCT ?b WHERE { resource:Aleksandar_Stanković property:notable_work ?b . ?b rdf:type ontology:television_program }
[]
television program
Q3783498
SYSTEM
Nedjeljom u dva
Q3783498
(Q12956094,P800,c(Q15416))
action filter_type
action find
entity Q12956094
relation P800
type Q15416
Notable work done by Aleksandar Stanković was called [ANSWER]
['Q12956094', 'P800', {'concept': 'Q15416'}]
SELECT DISTINCT ?b WHERE { resource:Q12956094 property:P800 ?b . ?b rdf:type ontology:Q15416 }
Nedjeljom u dva
Notable work done by Aleksandar Stanković was called Nedjeljom u dva
Nedjeljom u dva
action filter_type
action find
entity Aleksandar Stanković
relation notable work
type television program
['Aleksandar Stanković', 'notable work', {'concept': 'television program'}]
SELECT DISTINCT ?b WHERE { resource:Aleksandar_Stanković property:notable_work ?b . ?b rdf:type ontology:television_program }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12956094
P937
Q13220204
USER
What is the work location of Aleksandar Stanković ?
(Q12956094,P937,c(Q13220204))
action filter_type
action find
entity Q12956094
relation P937
type Q13220204
['Q12956094', 'P937', {'concept': 'Q13220204'}]
SELECT DISTINCT ?a WHERE { resource:Q12956094 property:P937 ?a . ?a rdf:type ontology:Q13220204 }
Aleksandar Stanković
action filter_type
action find
entity Aleksandar Stanković
relation work location
type second-level administrative country subdivision
['Aleksandar Stanković', 'work location', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?a WHERE { resource:Aleksandar_Stanković property:work_location ?a . ?a rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q1435
SYSTEM
Zagreb
Q1435
(Q12956094,P937,c(Q13220204))
action filter_type
action find
entity Q12956094
relation P937
type Q13220204
The work location of Aleksandar Stanković is in [ANSWER]
['Q12956094', 'P937', {'concept': 'Q13220204'}]
SELECT DISTINCT ?a WHERE { resource:Q12956094 property:P937 ?a . ?a rdf:type ontology:Q13220204 }
Zagreb
The work location of Aleksandar Stanković is in Zagreb
Zagreb
action filter_type
action find
entity Aleksandar Stanković
relation work location
type second-level administrative country subdivision
['Aleksandar Stanković', 'work location', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?a WHERE { resource:Aleksandar_Stanković property:work_location ?a . ?a rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1990468
Q13220204
USER
And also tell me about Niggi Starck?
(Q1990468,P937,c(Q13220204))
action filter_type
action find
entity Q1990468
relation P937
type Q13220204
['Q1990468', 'P937', {'concept': 'Q13220204'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q13220204 . resource:Q1990468 property:P937 ?b }
Niggi Starck
action filter_type
action find
entity Niggi Starck
relation work location
type second-level administrative country subdivision
['Niggi Starck', 'work location', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:second-level_administrative_country_subdivision . resource:Niggi_Starck property:work_location ?b }
[]
second-level administrative country subdivision
Q63992
SYSTEM
Ascona
Q63992
(Q1990468,P937,c(Q13220204))
action filter_type
action find
entity Q1990468
relation P937
type Q13220204
[ANSWER]
['Q1990468', 'P937', {'concept': 'Q13220204'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q13220204 . resource:Q1990468 property:P937 ?b }
Ascona
Ascona
action filter_type
action find
entity Niggi Starck
relation work location
type second-level administrative country subdivision
['Niggi Starck', 'work location', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:second-level_administrative_country_subdivision . resource:Niggi_Starck property:work_location ?b }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1435
P190
Q486972 Q5119
USER
How many human settlements and capitals are partner towns of Zagreb ?
(Q1435,P190,c(Q486972)) (Q1435,P190,c(Q5119))
action count
action union
action filter_type
action find
entity Q1435
relation P190
type Q486972
action filter_type
action find
entity Q1435
relation P190
type Q5119
['Q1435', 'P190', {'concept': 'Q486972'}] ['Q1435', 'P190', {'concept': 'Q5119'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { { ?n rdf:type ontology:Q486972 . resource:Q1435 property:P190 ?n } UNION { resource:Q1435 property:P190 ?n . ?n rdf:type ontology:Q5119 } }
Zagreb
action count
action union
action filter_type
action find
entity Zagreb
relation sister city
type human settlement
action filter_type
action find
entity Zagreb
relation sister city
type capital
['Zagreb', 'sister city', {'concept': 'human settlement'}] ['Zagreb', 'sister city', {'concept': 'capital'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { { ?n rdf:type ontology:human_settlement . resource:Zagreb property:sister_city ?n } UNION { resource:Zagreb property:sister_city ?n . ?n rdf:type ontology:capital } }
[]
human settlement capital
SYSTEM
1 human settlements and 1 capitals
Q1342 Q31487
(Q1435,P190,c(Q486972)) (Q1435,P190,c(Q5119))
action count
action union
action filter_type
action find
entity Q1435
relation P190
type Q486972
action filter_type
action find
entity Q1435
relation P190
type Q5119
[ANSWER]
['Q1435', 'P190', {'concept': 'Q486972'}] ['Q1435', 'P190', {'concept': 'Q5119'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { { ?n rdf:type ontology:Q486972 . resource:Q1435 property:P190 ?n } UNION { resource:Q1435 property:P190 ?n . ?n rdf:type ontology:Q5119 } }
Pittsburgh Kraków
1 human settlements and 1 capitals
action count
action union
action filter_type
action find
entity Zagreb
relation sister city
type human settlement
action filter_type
action find
entity Zagreb
relation sister city
type capital
['Zagreb', 'sister city', {'concept': 'human settlement'}] ['Zagreb', 'sister city', {'concept': 'capital'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { { ?n rdf:type ontology:human_settlement . resource:Zagreb property:sister_city ?n } UNION { resource:Zagreb property:sister_city ?n . ?n rdf:type ontology:capital } }
[]