Simple Question (Direct)
Simple Question
Q317327
P641
Q349
USER
Which sport was Julius Hirsch a part of ?
(Q317327,P641,c(Q349))
action filter_type
action find
entity Q317327
relation P641
type Q349
['Q317327', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q317327 property:P641 ?q . ?q rdf:type ontology:Q349 }
Julius Hirsch
action filter_type
action find
entity Julius Hirsch
relation sport
type sport
['Julius Hirsch', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Julius_Hirsch property:sport ?q . ?q rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q317327,P641,c(Q349))
action filter_type
action find
entity Q317327
relation P641
type Q349
The [ANSWER] was Julius Hirsch a part of
['Q317327', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q317327 property:P641 ?q . ?q rdf:type ontology:Q349 }
association football
The association football was Julius Hirsch a part of
association football
action filter_type
action find
entity Julius Hirsch
relation sport
type sport
['Julius Hirsch', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Julius_Hirsch property:sport ?q . ?q rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q317327
P106
Q12737077
USER
What does Julius Hirsch do for a living ?
(Q317327,P106,c(Q12737077))
action filter_type
action find
entity Q317327
relation P106
type Q12737077
['Q317327', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q317327 property:P106 ?h }
Julius Hirsch
action filter_type
action find
entity Julius Hirsch
relation occupation
type occupation
['Julius Hirsch', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:Julius_Hirsch property:occupation ?h }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q317327,P106,c(Q12737077))
action filter_type
action find
entity Q317327
relation P106
type Q12737077
Julius Hirsch does an [ANSWER] for a living
['Q317327', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q317327 property:P106 ?h }
association football player
Julius Hirsch does an association football player for a living
association football player
action filter_type
action find
entity Julius Hirsch
relation occupation
type occupation
['Julius Hirsch', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:Julius_Hirsch property:occupation ?h }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2043640
Q12737077
USER
And what about Hans Savery il Vecchio?
(Q2043640,P106,c(Q12737077))
action filter_type
action find
entity Q2043640
relation P106
type Q12737077
['Q2043640', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q2043640 property:P106 ?z }
Hans Savery il Vecchio
action filter_type
action find
entity Hans Savery il Vecchio
relation occupation
type occupation
['Hans Savery il Vecchio', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:Hans_Savery_il_Vecchio property:occupation ?z }
[]
occupation
Q1028181
SYSTEM
painter
Q1028181
(Q2043640,P106,c(Q12737077))
action filter_type
action find
entity Q2043640
relation P106
type Q12737077
[ANSWER]
['Q2043640', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q2043640 property:P106 ?z }
painter
painter
action filter_type
action find
entity Hans Savery il Vecchio
relation occupation
type occupation
['Hans Savery il Vecchio', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:Hans_Savery_il_Vecchio property:occupation ?z }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3619265 Q2043640
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Hans Savery il Vecchio or Antonio Bigini ?
OR((Q2043640,P27,c(Q15617994)), (Q3619265,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2043640
relation P27
action find
entity Q3619265
relation P27
type Q15617994
{'OR': [['Q2043640', 'P27', {'concept': 'Q15617994'}], ['Q3619265', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q3619265 property:P27 ?m } UNION { resource:Q2043640 property:P27 ?m } } . ?m rdf:type ontology:Q15617994 }
Antonio Bigini Hans Savery il Vecchio
action filter_type
action union
action find
entity Hans Savery il Vecchio
relation country of citizenship
action find
entity Antonio Bigini
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Hans Savery il Vecchio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Antonio Bigini', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Antonio_Bigini property:country_of_citizenship ?m } UNION { resource:Hans_Savery_il_Vecchio property:country_of_citizenship ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q55
SYSTEM
Italy, Netherlands
Q38 Q55
OR((Q2043640,P27,c(Q15617994)), (Q3619265,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2043640
relation P27
action find
entity Q3619265
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Hans Savery il Vecchio or Antonio Bigini
{'OR': [['Q2043640', 'P27', {'concept': 'Q15617994'}], ['Q3619265', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q3619265 property:P27 ?m } UNION { resource:Q2043640 property:P27 ?m } } . ?m rdf:type ontology:Q15617994 }
Italy Netherlands
Italy and Netherlands are the countries of citizenship of Hans Savery il Vecchio or Antonio Bigini
Italy Netherlands
action filter_type
action union
action find
entity Hans Savery il Vecchio
relation country of citizenship
action find
entity Antonio Bigini
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Hans Savery il Vecchio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Antonio Bigini', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Antonio_Bigini property:country_of_citizenship ?m } UNION { resource:Hans_Savery_il_Vecchio property:country_of_citizenship ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P840
Q166142 Q15416
USER
How many applications and television programs have a setting location of that administrative territory ?
(c(Q166142),P840,Q55) (c(Q15416),P840,Q55) (c(Q166142),P840,Q38) (c(Q15416),P840,Q38) (c(Q166142),P840,Q55) (c(Q15416),P840,Q55)
[{'concept': 'Q166142'}, 'P840', 'Q55'] [{'concept': 'Q15416'}, 'P840', 'Q55'] [{'concept': 'Q166142'}, 'P840', 'Q38'] [{'concept': 'Q15416'}, 'P840', 'Q38'] [{'concept': 'Q166142'}, 'P840', 'Q55'] [{'concept': 'Q15416'}, 'P840', 'Q55']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P840 resource:Q22442862 } UNION { ?y property:P840 resource:Q22442862 } UNION { ?z property:P840 resource:Q977238 } UNION { ?y property:P840 resource:Q977238 } UNION { ?z property:P840 resource:Q22442862 } UNION { ?y property:P840 resource:Q22442862 } } . ?z rdf:type ontology:Q166142 . ?y rdf:type ontology:Q15416 }
[{'concept': 'application'}, 'narrative location', 'Netherlands'] [{'concept': 'television program'}, 'narrative location', 'Netherlands'] [{'concept': 'application'}, 'narrative location', 'Italy'] [{'concept': 'television program'}, 'narrative location', 'Italy'] [{'concept': 'application'}, 'narrative location', 'Netherlands'] [{'concept': 'television program'}, 'narrative location', 'Netherlands']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:narrative_location resource:Netherlands } UNION { ?y property:narrative_location resource:Netherlands } UNION { ?z property:narrative_location resource:Italy } UNION { ?y property:narrative_location resource:Italy } UNION { ?z property:narrative_location resource:Netherlands } UNION { ?y property:narrative_location resource:Netherlands } } . ?z rdf:type ontology:application . ?y rdf:type ontology:television_program }
[]
application television program
Quantitative|Count|Mult. entity type|Clarification
Q38
SYSTEM
Did you mean Italy ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P840 resource:Q22442862 } UNION { ?y property:P840 resource:Q22442862 } UNION { ?z property:P840 resource:Q977238 } UNION { ?y property:P840 resource:Q977238 } UNION { ?z property:P840 resource:Q22442862 } UNION { ?y property:P840 resource:Q22442862 } } . ?z rdf:type ontology:Q166142 . ?y rdf:type ontology:Q15416 }
Did you mean Italy ?
Italy
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:narrative_location resource:Netherlands } UNION { ?y property:narrative_location resource:Netherlands } UNION { ?z property:narrative_location resource:Italy } UNION { ?y property:narrative_location resource:Italy } UNION { ?z property:narrative_location resource:Netherlands } UNION { ?y property:narrative_location resource:Netherlands } } . ?z rdf:type ontology:application . ?y rdf:type ontology:television_program }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Netherlands. Could you tell me the answer for that?
(c(Q166142),P840,Q55) (c(Q15416),P840,Q55) (c(Q166142),P840,Q38) (c(Q15416),P840,Q38) (c(Q166142),P840,Q55) (c(Q15416),P840,Q55)
Q55
[{'concept': 'Q166142'}, 'P840', 'Q55'] [{'concept': 'Q15416'}, 'P840', 'Q55'] [{'concept': 'Q166142'}, 'P840', 'Q38'] [{'concept': 'Q15416'}, 'P840', 'Q38'] [{'concept': 'Q166142'}, 'P840', 'Q55'] [{'concept': 'Q15416'}, 'P840', 'Q55']
[{'concept': 'application'}, 'narrative location', 'Netherlands'] [{'concept': 'television program'}, 'narrative location', 'Netherlands'] [{'concept': 'application'}, 'narrative location', 'Italy'] [{'concept': 'television program'}, 'narrative location', 'Italy'] [{'concept': 'application'}, 'narrative location', 'Netherlands'] [{'concept': 'television program'}, 'narrative location', 'Netherlands']
[]
SYSTEM
3 applications and 6 television programs
Q791439 Q17426152 Q1493130 Q5140148 Q2085877 Q980494 Q7747714 Q2468636 Q2632206
(c(Q166142),P840,Q55) (c(Q15416),P840,Q55) (c(Q166142),P840,Q38) (c(Q15416),P840,Q38) (c(Q166142),P840,Q55) (c(Q15416),P840,Q55)
[ANSWER]
[{'concept': 'Q166142'}, 'P840', 'Q55'] [{'concept': 'Q15416'}, 'P840', 'Q55'] [{'concept': 'Q166142'}, 'P840', 'Q38'] [{'concept': 'Q15416'}, 'P840', 'Q38'] [{'concept': 'Q166142'}, 'P840', 'Q55'] [{'concept': 'Q15416'}, 'P840', 'Q55']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P840 resource:Q22442862 } UNION { ?y property:P840 resource:Q22442862 } UNION { ?z property:P840 resource:Q977238 } UNION { ?y property:P840 resource:Q977238 } UNION { ?z property:P840 resource:Q22442862 } UNION { ?y property:P840 resource:Q22442862 } } . ?z rdf:type ontology:Q166142 . ?y rdf:type ontology:Q15416 }
Battlefield 1942 An Impossible Job The Audrey Hepburn Story Codename: Kyril Offers UEFA Euro 2000 The Little Riders Bloedbroeders Euro Truck Simulator 2
3 applications and 6 television programs
[{'concept': 'application'}, 'narrative location', 'Netherlands'] [{'concept': 'television program'}, 'narrative location', 'Netherlands'] [{'concept': 'application'}, 'narrative location', 'Italy'] [{'concept': 'television program'}, 'narrative location', 'Italy'] [{'concept': 'application'}, 'narrative location', 'Netherlands'] [{'concept': 'television program'}, 'narrative location', 'Netherlands']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:narrative_location resource:Netherlands } UNION { ?y property:narrative_location resource:Netherlands } UNION { ?z property:narrative_location resource:Italy } UNION { ?y property:narrative_location resource:Italy } UNION { ?z property:narrative_location resource:Netherlands } UNION { ?y property:narrative_location resource:Netherlands } } . ?z rdf:type ontology:application . ?y rdf:type ontology:television_program }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q55
P530
Q1048835
USER
Which political territories have diplomatic relations with Netherlands ?
(Q55,P530,c(Q1048835))
action filter_type
action find
entity Q55
relation P530
type Q1048835
['Q55', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q55 property:P530 ?l . ?l rdf:type ontology:Q1048835 }
Netherlands
action filter_type
action find
entity Netherlands
relation diplomatic relation
type political territorial entity
['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Netherlands property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
(Q55,P530,c(Q1048835))
action filter_type
action find
entity Q55
relation P530
type Q1048835
[ANSWERS] have diplomatic relations with Netherlands
['Q55', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q55 property:P530 ?l . ?l rdf:type ontology:Q1048835 }
Australia Germany
Australia and Germany have diplomatic relations with Netherlands
Australia Germany
action filter_type
action find
entity Netherlands
relation diplomatic relation
type political territorial entity
['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Netherlands property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity }
[]