Simple Question (Direct)
Simple Question
Q273371
P26
Q502895
USER
Which person is married to Ina Garten ?
(Q273371,P26,c(Q502895))
action filter_type
action find
entity Q273371
relation P26
type Q502895
['Q273371', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q273371 property:P26 ?h . ?h rdf:type ontology:Q502895 }
Ina Garten
action filter_type
action find
entity Ina Garten
relation spouse
type common name
['Ina Garten', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Ina_Garten property:spouse ?h . ?h rdf:type ontology:common_name }
[]
common name
Q6175998
SYSTEM
Jeffrey Garten
Q6175998
(Q273371,P26,c(Q502895))
action filter_type
action find
entity Q273371
relation P26
type Q502895
[ANSWER] is married to Ina Garten
['Q273371', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q273371 property:P26 ?h . ?h rdf:type ontology:Q502895 }
Jeffrey Garten
Jeffrey Garten is married to Ina Garten
Jeffrey Garten
action filter_type
action find
entity Ina Garten
relation spouse
type common name
['Ina Garten', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Ina_Garten property:spouse ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q273371
P21
Q290
USER
What is the sex of Ina Garten ?
(Q273371,P21,c(Q290))
action filter_type
action find
entity Q273371
relation P21
type Q290
['Q273371', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q273371 property:P21 ?l . ?l rdf:type ontology:Q290 }
Ina Garten
action filter_type
action find
entity Ina Garten
relation gender
type sex
['Ina Garten', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Ina_Garten property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q273371,P21,c(Q290))
action filter_type
action find
entity Q273371
relation P21
type Q290
The sex of Ina Garten is the [ANSWER]
['Q273371', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q273371 property:P21 ?l . ?l rdf:type ontology:Q290 }
female
The sex of Ina Garten is the female
female
action filter_type
action find
entity Ina Garten
relation gender
type sex
['Ina Garten', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Ina_Garten property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q20253012
Q290
USER
And also tell me about Elli Stenberg?
(Q20253012,P21,c(Q290))
action filter_type
action find
entity Q20253012
relation P21
type Q290
['Q20253012', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q20253012 property:P21 ?s . ?s rdf:type ontology:Q290 }
Elli Stenberg
action filter_type
action find
entity Elli Stenberg
relation gender
type sex
['Elli Stenberg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Elli_Stenberg property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q20253012,P21,c(Q290))
action filter_type
action find
entity Q20253012
relation P21
type Q290
[ANSWER]
['Q20253012', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q20253012 property:P21 ?s . ?s rdf:type ontology:Q290 }
female
female
action filter_type
action find
entity Elli Stenberg
relation gender
type sex
['Elli Stenberg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Elli_Stenberg property:gender ?s . ?s rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q6175998
P26
Q502895
USER
How many people are married to Jeffrey Garten ?
(c(Q502895),P26,Q6175998)
action count
action filter_type
action find_reverse
entity Q6175998
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q6175998']
SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:P26 resource:Q6175998 . ?z rdf:type ontology:Q502895 }
Jeffrey Garten
action count
action filter_type
action find_reverse
entity Jeffrey Garten
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Jeffrey Garten']
SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:spouse resource:Jeffrey_Garten . ?z rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q273371
(c(Q502895),P26,Q6175998)
action count
action filter_type
action find_reverse
entity Q6175998
relation P26
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q6175998']
SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:P26 resource:Q6175998 . ?z rdf:type ontology:Q502895 }
Ina Garten
1
action count
action filter_type
action find_reverse
entity Jeffrey Garten
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Jeffrey Garten']
SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:spouse resource:Jeffrey_Garten . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q273371
P19
Q56061
USER
Which administrative territory was Ina Garten born at ?
(Q273371,P19,c(Q56061))
action filter_type
action find
entity Q273371
relation P19
type Q56061
['Q273371', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q273371 property:P19 ?a }
Ina Garten
action filter_type
action find
entity Ina Garten
relation place of birth
type administrative territorial entity
['Ina Garten', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Ina_Garten property:place_of_birth ?a }
[]
administrative territorial entity
Q18419
SYSTEM
Brooklyn
Q18419
(Q273371,P19,c(Q56061))
action filter_type
action find
entity Q273371
relation P19
type Q56061
Na Garten I was born in [ANSWER]
['Q273371', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q273371 property:P19 ?a }
Brooklyn
Na Garten I was born in Brooklyn
Brooklyn
action filter_type
action find
entity Ina Garten
relation place of birth
type administrative territorial entity
['Ina Garten', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Ina_Garten property:place_of_birth ?a }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q112416
Q56061
USER
And what about Edmund Glaise-Horstenau?
(Q112416,P19,c(Q56061))
action filter_type
action find
entity Q112416
relation P19
type Q56061
['Q112416', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q112416 property:P19 ?x . ?x rdf:type ontology:Q56061 }
Edmund Glaise-Horstenau
action filter_type
action find
entity Edmund Glaise-Horstenau
relation place of birth
type administrative territorial entity
['Edmund Glaise-Horstenau', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Edmund_Glaise-Horstenau property:place_of_birth ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q131128
SYSTEM
Braunau am Inn
Q131128
(Q112416,P19,c(Q56061))
action filter_type
action find
entity Q112416
relation P19
type Q56061
[ANSWER]
['Q112416', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q112416 property:P19 ?x . ?x rdf:type ontology:Q56061 }
Braunau am Inn
Braunau am Inn
action filter_type
action find
entity Edmund Glaise-Horstenau
relation place of birth
type administrative territorial entity
['Edmund Glaise-Horstenau', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Edmund_Glaise-Horstenau property:place_of_birth ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P47
Q15617994 Q7275
USER
How many administrative territories and states share border with that administrative territory ?
(Q131128,P47,c(Q15617994)) (Q131128,P47,c(Q7275)) (Q131128,P47,c(Q15617994)) (Q131128,P47,c(Q7275))
action count
action union
action filter_type
action find
entity Q131128
relation P47
type Q15617994
action filter_type
action find
entity Q131128
relation P47
type Q7275
['Q131128', 'P47', {'concept': 'Q15617994'}] ['Q131128', 'P47', {'concept': 'Q7275'}] ['Q131128', 'P47', {'concept': 'Q15617994'}] ['Q131128', 'P47', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { ?t rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15617994 ) ( ontology:Q7275 ) } }
action count
action union
action filter_type
action find
entity Braunau am Inn
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Braunau am Inn
relation shares border with
type state
['Braunau am Inn', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Braunau am Inn', 'shares border with', {'concept': 'state'}] ['Braunau am Inn', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Braunau am Inn', 'shares border with', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { ?t rdf:type ?w . VALUES ( ?w ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:state ) } }
[]
designation for an administrative territorial entity state
SYSTEM
2 administrative territories and 1 states
Q583404 Q253236 Q980
(Q131128,P47,c(Q15617994)) (Q131128,P47,c(Q7275)) (Q131128,P47,c(Q15617994)) (Q131128,P47,c(Q7275))
action count
action union
action filter_type
action find
entity Q131128
relation P47
type Q15617994
action filter_type
action find
entity Q131128
relation P47
type Q7275
[ANSWER]
['Q131128', 'P47', {'concept': 'Q15617994'}] ['Q131128', 'P47', {'concept': 'Q7275'}] ['Q131128', 'P47', {'concept': 'Q15617994'}] ['Q131128', 'P47', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { ?t rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15617994 ) ( ontology:Q7275 ) } }
Kirchdorf am Inn Simbach am Inn Bavaria
2 administrative territories and 1 states
action count
action union
action filter_type
action find
entity Braunau am Inn
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Braunau am Inn
relation shares border with
type state
['Braunau am Inn', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Braunau am Inn', 'shares border with', {'concept': 'state'}] ['Braunau am Inn', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Braunau am Inn', 'shares border with', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { ?t rdf:type ?w . VALUES ( ?w ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:state ) } }
[]