Simple Question (Direct)
Simple Question
Q5889621
P21
Q290
USER
What is the sex of Gustavo García Cuerva ?
(Q5889621,P21,c(Q290))
action filter_type
action find
entity Q5889621
relation P21
type Q290
['Q5889621', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q5889621 property:P21 ?v . ?v rdf:type ontology:Q290 }
Gustavo García Cuerva
action filter_type
action find
entity Gustavo García Cuerva
relation gender
type sex
['Gustavo García Cuerva', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Gustavo_García_Cuerva property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5889621,P21,c(Q290))
action filter_type
action find
entity Q5889621
relation P21
type Q290
The sex of Gustavo García Cuerva is the [ANSWER]
['Q5889621', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q5889621 property:P21 ?v . ?v rdf:type ontology:Q290 }
male
The sex of Gustavo García Cuerva is the male
male
action filter_type
action find
entity Gustavo García Cuerva
relation gender
type sex
['Gustavo García Cuerva', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Gustavo_García_Cuerva property:gender ?v . ?v rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21284640 Q5889621
P27
Q15617994
USER
Which administrative territories are Gustavo García Cuerva or Mirko Bruccini a civilian of ?
OR((Q5889621,P27,c(Q15617994)), (Q21284640,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5889621
relation P27
action find
entity Q21284640
relation P27
type Q15617994
{'OR': [['Q5889621', 'P27', {'concept': 'Q15617994'}], ['Q21284640', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { ?t property:P27 ?b . VALUES ( ?t ) { ( resource:Q5889621 ) ( resource:Q21284640 ) } } . ?b rdf:type ontology:Q15617994 }
Mirko Bruccini Gustavo García Cuerva
action filter_type
action union
action find
entity Gustavo García Cuerva
relation country of citizenship
action find
entity Mirko Bruccini
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Gustavo García Cuerva', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mirko Bruccini', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { ?t property:country_of_citizenship ?b . VALUES ( ?t ) { ( resource:Gustavo_García_Cuerva ) ( resource:Mirko_Bruccini ) } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q414
SYSTEM
Italy, Argentina
Q38 Q414
OR((Q5889621,P27,c(Q15617994)), (Q21284640,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5889621
relation P27
action find
entity Q21284640
relation P27
type Q15617994
[ANSWERS] are Gustavo García Cuerva or Mirko Bruccini a civilian of
{'OR': [['Q5889621', 'P27', {'concept': 'Q15617994'}], ['Q21284640', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { ?t property:P27 ?b . VALUES ( ?t ) { ( resource:Q5889621 ) ( resource:Q21284640 ) } } . ?b rdf:type ontology:Q15617994 }
Italy Argentina
Italy and Argentina are Gustavo García Cuerva or Mirko Bruccini a civilian of
Italy Argentina
action filter_type
action union
action find
entity Gustavo García Cuerva
relation country of citizenship
action find
entity Mirko Bruccini
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Gustavo García Cuerva', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mirko Bruccini', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { ?t property:country_of_citizenship ?b . VALUES ( ?t ) { ( resource:Gustavo_García_Cuerva ) ( resource:Mirko_Bruccini ) } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P1532
Q1194951 Q6979593
USER
How many national sports teams and national association football teams represent that administrative territory ?
(c(Q1194951),P1532,Q414) (c(Q6979593),P1532,Q414) (c(Q1194951),P1532,Q38) (c(Q6979593),P1532,Q38) (c(Q1194951),P1532,Q414) (c(Q6979593),P1532,Q414)
[{'concept': 'Q1194951'}, 'P1532', 'Q414'] [{'concept': 'Q6979593'}, 'P1532', 'Q414'] [{'concept': 'Q1194951'}, 'P1532', 'Q38'] [{'concept': 'Q6979593'}, 'P1532', 'Q38'] [{'concept': 'Q1194951'}, 'P1532', 'Q414'] [{'concept': 'Q6979593'}, 'P1532', 'Q414']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:P1532 resource:Q3622264 } UNION { ?y property:P1532 resource:Q3622264 } UNION { ?z property:P1532 resource:Q977238 } UNION { ?y property:P1532 resource:Q977238 } UNION { ?z property:P1532 resource:Q3622264 } UNION { ?y property:P1532 resource:Q3622264 } } . ?z rdf:type ontology:Q1194951 . ?y rdf:type ontology:Q6979593 }
[{'concept': 'national sports team'}, 'country for sport', 'Argentina'] [{'concept': 'national association football team'}, 'country for sport', 'Argentina'] [{'concept': 'national sports team'}, 'country for sport', 'Italy'] [{'concept': 'national association football team'}, 'country for sport', 'Italy'] [{'concept': 'national sports team'}, 'country for sport', 'Argentina'] [{'concept': 'national association football team'}, 'country for sport', 'Argentina']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:country_for_sport resource:Argentina } UNION { ?y property:country_for_sport resource:Argentina } UNION { ?z property:country_for_sport resource:Italy } UNION { ?y property:country_for_sport resource:Italy } UNION { ?z property:country_for_sport resource:Argentina } UNION { ?y property:country_for_sport resource:Argentina } } . ?z rdf:type ontology:national_sports_team . ?y rdf:type ontology:national_association_football_team }
[]
national sports team national association football team
Quantitative|Count|Mult. entity type|Clarification
Q38
SYSTEM
Did you mean Italy ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:P1532 resource:Q3622264 } UNION { ?y property:P1532 resource:Q3622264 } UNION { ?z property:P1532 resource:Q977238 } UNION { ?y property:P1532 resource:Q977238 } UNION { ?z property:P1532 resource:Q3622264 } UNION { ?y property:P1532 resource:Q3622264 } } . ?z rdf:type ontology:Q1194951 . ?y rdf:type ontology:Q6979593 }
Did you mean Italy ?
Italy
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:country_for_sport resource:Argentina } UNION { ?y property:country_for_sport resource:Argentina } UNION { ?z property:country_for_sport resource:Italy } UNION { ?y property:country_for_sport resource:Italy } UNION { ?z property:country_for_sport resource:Argentina } UNION { ?y property:country_for_sport resource:Argentina } } . ?z rdf:type ontology:national_sports_team . ?y rdf:type ontology:national_association_football_team }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Argentina. Could you tell me the answer for that?
(c(Q1194951),P1532,Q414) (c(Q6979593),P1532,Q414) (c(Q1194951),P1532,Q38) (c(Q6979593),P1532,Q38) (c(Q1194951),P1532,Q414) (c(Q6979593),P1532,Q414)
Q414
[{'concept': 'Q1194951'}, 'P1532', 'Q414'] [{'concept': 'Q6979593'}, 'P1532', 'Q414'] [{'concept': 'Q1194951'}, 'P1532', 'Q38'] [{'concept': 'Q6979593'}, 'P1532', 'Q38'] [{'concept': 'Q1194951'}, 'P1532', 'Q414'] [{'concept': 'Q6979593'}, 'P1532', 'Q414']
[{'concept': 'national sports team'}, 'country for sport', 'Argentina'] [{'concept': 'national association football team'}, 'country for sport', 'Argentina'] [{'concept': 'national sports team'}, 'country for sport', 'Italy'] [{'concept': 'national association football team'}, 'country for sport', 'Italy'] [{'concept': 'national sports team'}, 'country for sport', 'Argentina'] [{'concept': 'national association football team'}, 'country for sport', 'Argentina']
[]
SYSTEM
1 national sports teams and 2 national association football teams
Q79800 Q645918 Q23501509
(c(Q1194951),P1532,Q414) (c(Q6979593),P1532,Q414) (c(Q1194951),P1532,Q38) (c(Q6979593),P1532,Q38) (c(Q1194951),P1532,Q414) (c(Q6979593),P1532,Q414)
[ANSWER]
[{'concept': 'Q1194951'}, 'P1532', 'Q414'] [{'concept': 'Q6979593'}, 'P1532', 'Q414'] [{'concept': 'Q1194951'}, 'P1532', 'Q38'] [{'concept': 'Q6979593'}, 'P1532', 'Q38'] [{'concept': 'Q1194951'}, 'P1532', 'Q414'] [{'concept': 'Q6979593'}, 'P1532', 'Q414']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:P1532 resource:Q3622264 } UNION { ?y property:P1532 resource:Q3622264 } UNION { ?z property:P1532 resource:Q977238 } UNION { ?y property:P1532 resource:Q977238 } UNION { ?z property:P1532 resource:Q3622264 } UNION { ?y property:P1532 resource:Q3622264 } } . ?z rdf:type ontology:Q1194951 . ?y rdf:type ontology:Q6979593 }
Argentina national football team Argentina women's national football team Argentina women's national under-17 football team
1 national sports teams and 2 national association football teams
[{'concept': 'national sports team'}, 'country for sport', 'Argentina'] [{'concept': 'national association football team'}, 'country for sport', 'Argentina'] [{'concept': 'national sports team'}, 'country for sport', 'Italy'] [{'concept': 'national association football team'}, 'country for sport', 'Italy'] [{'concept': 'national sports team'}, 'country for sport', 'Argentina'] [{'concept': 'national association football team'}, 'country for sport', 'Argentina']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:country_for_sport resource:Argentina } UNION { ?y property:country_for_sport resource:Argentina } UNION { ?z property:country_for_sport resource:Italy } UNION { ?y property:country_for_sport resource:Italy } UNION { ?z property:country_for_sport resource:Argentina } UNION { ?y property:country_for_sport resource:Argentina } } . ?z rdf:type ontology:national_sports_team . ?y rdf:type ontology:national_association_football_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5889621
P69
Q1935049
USER
What is the military school where Gustavo García Cuerva was educated ?
(Q5889621,P69,c(Q1935049))
action filter_type
action find
entity Q5889621
relation P69
type Q1935049
['Q5889621', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1935049 . resource:Q5889621 property:P69 ?s }
Gustavo García Cuerva
action filter_type
action find
entity Gustavo García Cuerva
relation educated at
type military school
['Gustavo García Cuerva', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:military_school . resource:Gustavo_García_Cuerva property:educated_at ?s }
[]
military school
Q5839063
SYSTEM
Escuela de Aviación Militar
Q5839063
(Q5889621,P69,c(Q1935049))
action filter_type
action find
entity Q5889621
relation P69
type Q1935049
The military school Gustavo García Cuerva was educated is the [ANSWER]
['Q5889621', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1935049 . resource:Q5889621 property:P69 ?s }
Escuela de Aviación Militar
The military school Gustavo García Cuerva was educated is the Escuela de Aviación Militar
Escuela de Aviación Militar
action filter_type
action find
entity Gustavo García Cuerva
relation educated at
type military school
['Gustavo García Cuerva', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:military_school . resource:Gustavo_García_Cuerva property:educated_at ?s }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7791186
Q1935049
USER
And what about Thomas Jackson Rodman?
(Q7791186,P69,c(Q1935049))
action filter_type
action find
entity Q7791186
relation P69
type Q1935049
['Q7791186', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1935049 . resource:Q7791186 property:P69 ?w }
Thomas Jackson Rodman
action filter_type
action find
entity Thomas Jackson Rodman
relation educated at
type military school
['Thomas Jackson Rodman', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:military_school . resource:Thomas_Jackson_Rodman property:educated_at ?w }
[]
military school
Q9219
SYSTEM
United States Military Academy at West Point
Q9219
(Q7791186,P69,c(Q1935049))
action filter_type
action find
entity Q7791186
relation P69
type Q1935049
[ANSWER]
['Q7791186', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1935049 . resource:Q7791186 property:P69 ?w }
United States Military Academy at West Point
United States Military Academy at West Point
action filter_type
action find
entity Thomas Jackson Rodman
relation educated at
type military school
['Thomas Jackson Rodman', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:military_school . resource:Thomas_Jackson_Rodman property:educated_at ?w }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q9219 Q23
P112
Q502895
USER
Was George Washington the founder of United States Military Academy at West Point ?
(Q9219,P112,Q23)
action is_in
entity Q23
action find
entity Q9219
relation P112
['Q9219', 'P112', 'Q23']
ASK WHERE { resource:Q9219 property:P112 resource:Q23 }
United States Military Academy at West Point George Washington
action is_in
entity George Washington
action find
entity United States Military Academy at West Point
relation founder
['United States Military Academy at West Point', 'founder', 'George Washington']
ASK WHERE { resource:United_States_Military_Academy_at_West_Point property:founder resource:George_Washington }
[]
common name
SYSTEM
YES
(Q9219,P112,Q23)
action is_in
entity Q23
action find
entity Q9219
relation P112
[ANSWER]
['Q9219', 'P112', 'Q23']
ASK WHERE { resource:Q9219 property:P112 resource:Q23 }
Yes
action is_in
entity George Washington
action find
entity United States Military Academy at West Point
relation founder
['United States Military Academy at West Point', 'founder', 'George Washington']
ASK WHERE { resource:United_States_Military_Academy_at_West_Point property:founder resource:George_Washington }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q38 Q1242
P35
Q502895
USER
Is Luigi Einaudi elected as the head of state of Italy ?
(Q38,P35,Q1242)
action is_in
entity Q1242
action find
entity Q38
relation P35
['Q38', 'P35', 'Q1242']
ASK WHERE { resource:Q38 property:P35 resource:Q1242 }
Italy Luigi Einaudi
action is_in
entity Luigi Einaudi
action find
entity Italy
relation head of state
['Italy', 'head of state', 'Luigi Einaudi']
ASK WHERE { resource:Italy property:head_of_state resource:Luigi_Einaudi }
[]
common name
SYSTEM
YES
(Q38,P35,Q1242)
action is_in
entity Q1242
action find
entity Q38
relation P35
[ANSWER]
['Q38', 'P35', 'Q1242']
ASK WHERE { resource:Q38 property:P35 resource:Q1242 }
Yes
action is_in
entity Luigi Einaudi
action find
entity Italy
relation head of state
['Italy', 'head of state', 'Luigi Einaudi']
ASK WHERE { resource:Italy property:head_of_state resource:Luigi_Einaudi }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q38 Q25936435
P17
Q1048835
USER
How many political territories are Italy or Twinkl Educational Publishing located in ?
(Q38,P17,c(Q1048835)) (Q25936435,P17,c(Q1048835))
action count
action union
action filter_type
action find
entity Q38
relation P17
type Q1048835
action filter_type
action find
entity Q25936435
relation P17
type Q1048835
['Q38', 'P17', {'concept': 'Q1048835'}] ['Q25936435', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { resource:Q38 property:P17 ?x . ?x rdf:type ontology:Q1048835 } UNION { resource:Q25936435 property:P17 ?x . ?x rdf:type ontology:Q1048835 } }
Italy Twinkl Educational Publishing
action count
action union
action filter_type
action find
entity Italy
relation country
type political territorial entity
action filter_type
action find
entity Twinkl Educational Publishing
relation country
type political territorial entity
['Italy', 'country', {'concept': 'political territorial entity'}] ['Twinkl Educational Publishing', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { resource:Italy property:country ?x . ?x rdf:type ontology:political_territorial_entity } UNION { resource:Twinkl_Educational_Publishing property:country ?x . ?x rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
SYSTEM
4
Q16 Q408 Q664 Q183
(Q38,P17,c(Q1048835)) (Q25936435,P17,c(Q1048835))
action count
action union
action filter_type
action find
entity Q38
relation P17
type Q1048835
action filter_type
action find
entity Q25936435
relation P17
type Q1048835
[ANSWER]
['Q38', 'P17', {'concept': 'Q1048835'}] ['Q25936435', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { resource:Q38 property:P17 ?x . ?x rdf:type ontology:Q1048835 } UNION { resource:Q25936435 property:P17 ?x . ?x rdf:type ontology:Q1048835 } }
Canada Australia New Zealand Germany
4
action count
action union
action filter_type
action find
entity Italy
relation country
type political territorial entity
action filter_type
action find
entity Twinkl Educational Publishing
relation country
type political territorial entity
['Italy', 'country', {'concept': 'political territorial entity'}] ['Twinkl Educational Publishing', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { resource:Italy property:country ?x . ?x rdf:type ontology:political_territorial_entity } UNION { resource:Twinkl_Educational_Publishing property:country ?x . ?x rdf:type ontology:political_territorial_entity } }
[]