Simple Question (Direct)
Simple Question
Q4758652
P106
Q12737077
USER
Which occupation has Andrew Strahan as his/her 's career ?
(Q4758652,P106,c(Q12737077))
action filter_type
action find
entity Q4758652
relation P106
type Q12737077
['Q4758652', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q12737077 . resource:Q4758652 property:P106 ?r }
Andrew Strahan
action filter_type
action find
entity Andrew Strahan
relation occupation
type occupation
['Andrew Strahan', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:occupation . resource:Andrew_Strahan property:occupation ?r }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q4758652,P106,c(Q12737077))
action filter_type
action find
entity Q4758652
relation P106
type Q12737077
The [ANSWER] has Andrew Strahan as his/her 's career
['Q4758652', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q12737077 . resource:Q4758652 property:P106 ?r }
politician
The politician has Andrew Strahan as his/her 's career
politician
action filter_type
action find
entity Andrew Strahan
relation occupation
type occupation
['Andrew Strahan', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:occupation . resource:Andrew_Strahan property:occupation ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4758652
P21
Q290
USER
Which sex does Andrew Strahan belong to ?
(Q4758652,P21,c(Q290))
action filter_type
action find
entity Q4758652
relation P21
type Q290
['Q4758652', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q4758652 property:P21 ?o . ?o rdf:type ontology:Q290 }
Andrew Strahan
action filter_type
action find
entity Andrew Strahan
relation gender
type sex
['Andrew Strahan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Andrew_Strahan property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4758652,P21,c(Q290))
action filter_type
action find
entity Q4758652
relation P21
type Q290
Andrew Strahan belongs to [ANSWER]
['Q4758652', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q4758652 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
Andrew Strahan belongs to male
male
action filter_type
action find
entity Andrew Strahan
relation gender
type sex
['Andrew Strahan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Andrew_Strahan property:gender ?o . ?o rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4758652
P1412
Q34770
USER
Which language can that person read ?
(Q6581097,P1412,c(Q34770))
action filter_type
action find
entity Q4758652
relation P1412
type Q34770
['Q6581097', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { resource:Q4758652 property:P1412 ?i . ?i rdf:type ontology:Q34770 }
Andrew Strahan
action filter_type
action find
entity Andrew Strahan
relation languages spoken, written or signed
type language
['male', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { resource:Andrew_Strahan property:languages_spoken,_written_or_signed ?i . ?i rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q6581097,P1412,c(Q34770))
action filter_type
action find
entity Q4758652
relation P1412
type Q34770
That person can read the [ANSWER]
['Q6581097', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { resource:Q4758652 property:P1412 ?i . ?i rdf:type ontology:Q34770 }
English
That person can read the English
English
action filter_type
action find
entity Andrew Strahan
relation languages spoken, written or signed
type language
['male', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { resource:Andrew_Strahan property:languages_spoken,_written_or_signed ?i . ?i rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4758652
P937
Q56061
USER
Which administrative territory is the work location of that person ?
(Q1860,P937,c(Q56061))
action filter_type
action find
entity Q4758652
relation P937
type Q56061
['Q1860', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q4758652 property:P937 ?m . ?m rdf:type ontology:Q56061 }
Andrew Strahan
action filter_type
action find
entity Andrew Strahan
relation work location
type administrative territorial entity
['English', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Andrew_Strahan property:work_location ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q1860,P937,c(Q56061))
action filter_type
action find
entity Q4758652
relation P937
type Q56061
[ANSWER] is the work location of that person
['Q1860', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q4758652 property:P937 ?m . ?m rdf:type ontology:Q56061 }
London
London is the work location of that person
London
action filter_type
action find
entity Andrew Strahan
relation work location
type administrative territorial entity
['English', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Andrew_Strahan property:work_location ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7916188 Q4758652
P27 P17
Q15617994
USER
Which administrative territories do Andrew Strahan belong to or do Vartaşenqışlaq belong to ?
OR((Q4758652,P27,c(Q15617994)), (Q7916188,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4758652
relation P27
action find
entity Q7916188
relation P17
type Q15617994
{'OR': [['Q4758652', 'P27', {'concept': 'Q15617994'}], ['Q7916188', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . { { resource:Q4758652 property:P27 ?c } UNION { resource:Q7916188 property:P17 ?c } } }
Vartaşenqışlaq Andrew Strahan
action filter_type
action union
action find
entity Andrew Strahan
relation country of citizenship
action find
entity Vartaşenqışlaq
relation country
type designation for an administrative territorial entity
{'OR': [['Andrew Strahan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Vartaşenqışlaq', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Andrew_Strahan property:country_of_citizenship ?c } UNION { resource:Vartaşenqışlaq property:country ?c } } }
[]
designation for an administrative territorial entity
Q227 Q145
SYSTEM
Azerbaijan, United Kingdom
Q227 Q145
OR((Q4758652,P27,c(Q15617994)), (Q7916188,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4758652
relation P27
action find
entity Q7916188
relation P17
type Q15617994
Andrew Strahan belong to [ANSWERS]
{'OR': [['Q4758652', 'P27', {'concept': 'Q15617994'}], ['Q7916188', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . { { resource:Q4758652 property:P27 ?c } UNION { resource:Q7916188 property:P17 ?c } } }
Azerbaijan United Kingdom
Andrew Strahan belong to Azerbaijan and United Kingdom
Azerbaijan United Kingdom
action filter_type
action union
action find
entity Andrew Strahan
relation country of citizenship
action find
entity Vartaşenqışlaq
relation country
type designation for an administrative territorial entity
{'OR': [['Andrew Strahan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Vartaşenqışlaq', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Andrew_Strahan property:country_of_citizenship ?c } UNION { resource:Vartaşenqışlaq property:country ?c } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q84
P190
Q13220204 Q56061
USER
How many administrative country subdivisions and administrative territories are partner town of London ?
(c(Q13220204),P190,Q84) (c(Q56061),P190,Q84)
action count
action union
action filter_type
action find_reverse
entity Q84
relation P190
type Q13220204
action filter_type
action find_reverse
entity Q84
relation P190
type Q56061
[{'concept': 'Q13220204'}, 'P190', 'Q84'] [{'concept': 'Q56061'}, 'P190', 'Q84']
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { ?v rdf:type ?z . VALUES ( ?z ) { ( ontology:Q13220204 ) ( ontology:Q56061 ) } }
London
action count
action union
action filter_type
action find_reverse
entity London
relation sister city
type second-level administrative country subdivision
action filter_type
action find_reverse
entity London
relation sister city
type administrative territorial entity
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'London'] [{'concept': 'administrative territorial entity'}, 'sister city', 'London']
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { ?v rdf:type ?z . VALUES ( ?z ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:administrative_territorial_entity ) } }
[]
second-level administrative country subdivision administrative territorial entity
SYSTEM
3 administrative country subdivisions and 22 administrative territories
Q8686 Q1353 Q649 Q472 Q9899 Q1435 Q34820 Q9248 Q987 Q1156 Q3630 Q466221 Q585 Q64 Q23564 Q1850 Q3561 Q406 Q34647 Q956 Q159273 Q1490 Q65 Q2841 Q60
(c(Q13220204),P190,Q84) (c(Q56061),P190,Q84)
action count
action union
action filter_type
action find_reverse
entity Q84
relation P190
type Q13220204
action filter_type
action find_reverse
entity Q84
relation P190
type Q56061
[ANSWER]
[{'concept': 'Q13220204'}, 'P190', 'Q84'] [{'concept': 'Q56061'}, 'P190', 'Q84']
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { ?v rdf:type ?z . VALUES ( ?z ) { ( ontology:Q13220204 ) ( ontology:Q56061 ) } }
Shanghai Delhi Moscow Sofia Amsterdam Zagreb Santo Domingo Baku New Delhi Mumbai Jakarta Sylhet Oslo Berlin Podgorica Phnom Penh Algiers Istanbul Johannesburg Beijing Arequipa Tokyo Los Angeles Bogotá New York City
3 administrative country subdivisions and 22 administrative territories
action count
action union
action filter_type
action find_reverse
entity London
relation sister city
type second-level administrative country subdivision
action filter_type
action find_reverse
entity London
relation sister city
type administrative territorial entity
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'London'] [{'concept': 'administrative territorial entity'}, 'sister city', 'London']
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { ?v rdf:type ?z . VALUES ( ?z ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:administrative_territorial_entity ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q84
P190
Q13220204
USER
Which administrative country subdivisions are sister towns of London ?
(Q84,P190,c(Q13220204))
action filter_type
action find
entity Q84
relation P190
type Q13220204
['Q84', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?f WHERE { resource:Q84 property:P190 ?f . ?f rdf:type ontology:Q13220204 }
London
action filter_type
action find
entity London
relation sister city
type second-level administrative country subdivision
['London', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?f WHERE { resource:London property:sister_city ?f . ?f rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q2841 Q9899 Q1435
SYSTEM
Bogotá, Amsterdam, Zagreb
Q2841 Q9899 Q1435
(Q84,P190,c(Q13220204))
action filter_type
action find
entity Q84
relation P190
type Q13220204
[ANSWERS] are sister towns of London
['Q84', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?f WHERE { resource:Q84 property:P190 ?f . ?f rdf:type ontology:Q13220204 }
Bogotá Amsterdam Zagreb
Bogotá, Amsterdam and Zagreb are sister towns of London
Bogotá Amsterdam Zagreb
action filter_type
action find
entity London
relation sister city
type second-level administrative country subdivision
['London', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?f WHERE { resource:London property:sister_city ?f . ?f rdf:type ontology:second-level_administrative_country_subdivision }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1435
P740
Q2088357
USER
What are the musical ensembles that were formed at that administrative country subdivision ?
(c(Q2088357),P740,Q1435)
action filter_type
action find_reverse
entity Q1435
relation P740
type Q2088357
[{'concept': 'Q2088357'}, 'P740', 'Q1435']
SELECT DISTINCT ?l WHERE { ?l property:P740 resource:Q1435 . ?l rdf:type ontology:Q2088357 }
Zagreb
action filter_type
action find_reverse
entity Zagreb
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Zagreb']
SELECT DISTINCT ?l WHERE { ?l property:location_of_formation resource:Zagreb . ?l rdf:type ontology:musical_ensemble }
[]
musical ensemble
Clarification for simple ques.
Q1435
SYSTEM
Did you mean Zagreb ?
Q2841 Q9899 Q1435
(c(Q2088357),P740,Q2841) (c(Q2088357),P740,Q9899) (c(Q2088357),P740,Q1435)
[ANSWER]
[{'concept': 'Q2088357'}, 'P740', 'Q2841'] [{'concept': 'Q2088357'}, 'P740', 'Q9899'] [{'concept': 'Q2088357'}, 'P740', 'Q1435']
SELECT DISTINCT ?l WHERE { ?l property:P740 resource:Q1435 . ?l rdf:type ontology:Q2088357 }
Bogotá Amsterdam Zagreb
Did you mean Zagreb ?
Zagreb
[{'concept': 'musical ensemble'}, 'location of formation', 'Bogotá'] [{'concept': 'musical ensemble'}, 'location of formation', 'Amsterdam'] [{'concept': 'musical ensemble'}, 'location of formation', 'Zagreb']
SELECT DISTINCT ?l WHERE { ?l property:location_of_formation resource:Zagreb . ?l rdf:type ontology:musical_ensemble }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q2088357),P740,Q1435)
[{'concept': 'Q2088357'}, 'P740', 'Q1435']
[{'concept': 'musical ensemble'}, 'location of formation', 'Zagreb']
[]
Q7289601 Q335329 Q6414180
SYSTEM
Ramirez, Lollobrigida Girls, Kinoklub
Q7289601 Q335329 Q6414180
(c(Q2088357),P740,Q1435)
action filter_type
action find_reverse
entity Q1435
relation P740
type Q2088357
The musical ensembles that were formed at that administrative country subdivision are [ANSWERS]
[{'concept': 'Q2088357'}, 'P740', 'Q1435']
SELECT DISTINCT ?l WHERE { ?l property:P740 resource:Q1435 . ?l rdf:type ontology:Q2088357 }
Ramirez Lollobrigida Girls Kinoklub
The musical ensembles that were formed at that administrative country subdivision are Ramirez, Lollobrigida Girls and Kinoklub
Ramirez Lollobrigida Girls Kinoklub
action filter_type
action find_reverse
entity Zagreb
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Zagreb']
SELECT DISTINCT ?l WHERE { ?l property:location_of_formation resource:Zagreb . ?l rdf:type ontology:musical_ensemble }
[]