Simple Question (Direct)
Simple Question
Q2522957
P21
Q290
USER
Which sex does Sígfrid Gràcia belong to ?
(Q2522957,P21,c(Q290))
action filter_type
action find
entity Q2522957
relation P21
type Q290
['Q2522957', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q290 . resource:Q2522957 property:P21 ?h }
Sígfrid Gràcia
action filter_type
action find
entity Sígfrid Gràcia
relation gender
type sex
['Sígfrid Gràcia', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sex . resource:Sígfrid_Gràcia property:gender ?h }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2522957,P21,c(Q290))
action filter_type
action find
entity Q2522957
relation P21
type Q290
Sígfrid Gràcia belongs to [ANSWER]
['Q2522957', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q290 . resource:Q2522957 property:P21 ?h }
male
Sígfrid Gràcia belongs to male
male
action filter_type
action find
entity Sígfrid Gràcia
relation gender
type sex
['Sígfrid Gràcia', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sex . resource:Sígfrid_Gràcia property:gender ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2522957
P641
Q349
USER
Which sport was Sígfrid Gràcia a part of ?
(Q2522957,P641,c(Q349))
action filter_type
action find
entity Q2522957
relation P641
type Q349
['Q2522957', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { resource:Q2522957 property:P641 ?i . ?i rdf:type ontology:Q349 }
Sígfrid Gràcia
action filter_type
action find
entity Sígfrid Gràcia
relation sport
type sport
['Sígfrid Gràcia', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { resource:Sígfrid_Gràcia property:sport ?i . ?i rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q2522957,P641,c(Q349))
action filter_type
action find
entity Q2522957
relation P641
type Q349
The [ANSWER] was Sígfrid Gràcia a part of
['Q2522957', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { resource:Q2522957 property:P641 ?i . ?i rdf:type ontology:Q349 }
association football
The association football was Sígfrid Gràcia a part of
association football
action filter_type
action find
entity Sígfrid Gràcia
relation sport
type sport
['Sígfrid Gràcia', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { resource:Sígfrid_Gràcia property:sport ?i . ?i rdf:type ontology:sport }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q12223015
Q349
USER
And what about Abdulaziz Al-Yousef?
(Q12223015,P641,c(Q349))
action filter_type
action find
entity Q12223015
relation P641
type Q349
['Q12223015', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { resource:Q12223015 property:P641 ?g . ?g rdf:type ontology:Q349 }
Abdulaziz Al-Yousef
action filter_type
action find
entity Abdulaziz Al-Yousef
relation sport
type sport
['Abdulaziz Al-Yousef', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { resource:Abdulaziz_Al-Yousef property:sport ?g . ?g rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q12223015,P641,c(Q349))
action filter_type
action find
entity Q12223015
relation P641
type Q349
[ANSWER]
['Q12223015', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { resource:Q12223015 property:P641 ?g . ?g rdf:type ontology:Q349 }
association football
association football
action filter_type
action find
entity Abdulaziz Al-Yousef
relation sport
type sport
['Abdulaziz Al-Yousef', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { resource:Abdulaziz_Al-Yousef property:sport ?g . ?g rdf:type ontology:sport }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2736 Q18719446
P641
Q502895
USER
Is Nigel Gray associated with playing that sport ?
(Q18719446,P641,Q2736)
action is_in
entity Q2736
action find
entity Q18719446
relation P641
['Q18719446', 'P641', 'Q2736']
ASK WHERE { resource:Q18719446 property:P641 resource:Q2736 }
association football Nigel Gray
action is_in
entity association football
action find
entity Nigel Gray
relation sport
['Nigel Gray', 'sport', 'association football']
ASK WHERE { resource:Nigel_Gray property:sport resource:association_football }
[]
common name
SYSTEM
YES
(Q18719446,P641,Q2736)
action is_in
entity Q2736
action find
entity Q18719446
relation P641
[ANSWER]
['Q18719446', 'P641', 'Q2736']
ASK WHERE { resource:Q18719446 property:P641 resource:Q2736 }
Yes
action is_in
entity association football
action find
entity Nigel Gray
relation sport
['Nigel Gray', 'sport', 'association football']
ASK WHERE { resource:Nigel_Gray property:sport resource:association_football }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q2736 Q197949
P136
Q15416
USER
How many television programs have association football or post-apocalyptic fiction as genre ?
(c(Q15416),P136,Q2736) (c(Q15416),P136,Q197949)
action count
action union
action filter_type
action find_reverse
entity Q2736
relation P136
type Q15416
action filter_type
action find_reverse
entity Q197949
relation P136
type Q15416
[{'concept': 'Q15416'}, 'P136', 'Q2736'] [{'concept': 'Q15416'}, 'P136', 'Q197949']
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { VALUES ( ?n ) { ( resource:Q2736 ) ( resource:Q197949 ) } . ?x property:P136 ?n }
association football post-apocalyptic fiction
action count
action union
action filter_type
action find_reverse
entity association football
relation genre
type television program
action filter_type
action find_reverse
entity post-apocalyptic fiction
relation genre
type television program
[{'concept': 'television program'}, 'genre', 'association football'] [{'concept': 'television program'}, 'genre', 'post-apocalyptic fiction']
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { VALUES ( ?n ) { ( resource:association_football ) ( resource:post-apocalyptic_fiction ) } . ?x property:genre ?n }
[]
television program
SYSTEM
8
Q18579178 Q21072320 Q928429 Q232737 Q15627692 Q221237 Q13098946 Q18844725
(c(Q15416),P136,Q2736) (c(Q15416),P136,Q197949)
action count
action union
action filter_type
action find_reverse
entity Q2736
relation P136
type Q15416
action filter_type
action find_reverse
entity Q197949
relation P136
type Q15416
[ANSWER]
[{'concept': 'Q15416'}, 'P136', 'Q2736'] [{'concept': 'Q15416'}, 'P136', 'Q197949']
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { VALUES ( ?n ) { ( resource:Q2736 ) ( resource:Q197949 ) } . ?x property:P136 ?n }
Kabaneri of the Iron Fortress The Shannara Chronicles Falling Skies The Walking Dead The Last Ship Jericho The 100 Fear the Walking Dead
8
action count
action union
action filter_type
action find_reverse
entity association football
relation genre
type television program
action filter_type
action find_reverse
entity post-apocalyptic fiction
relation genre
type television program
[{'concept': 'television program'}, 'genre', 'association football'] [{'concept': 'television program'}, 'genre', 'post-apocalyptic fiction']
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { VALUES ( ?n ) { ( resource:association_football ) ( resource:post-apocalyptic_fiction ) } . ?x property:genre ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2522957
P1412
Q34770
USER
Which language is spoken by Sígfrid Gràcia ?
(Q2522957,P1412,c(Q34770))
action filter_type
action find
entity Q2522957
relation P1412
type Q34770
['Q2522957', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q2522957 property:P1412 ?a . ?a rdf:type ontology:Q34770 }
Sígfrid Gràcia
action filter_type
action find
entity Sígfrid Gràcia
relation languages spoken, written or signed
type language
['Sígfrid Gràcia', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:Sígfrid_Gràcia property:languages_spoken,_written_or_signed ?a . ?a rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q2522957,P1412,c(Q34770))
action filter_type
action find
entity Q2522957
relation P1412
type Q34770
[ANSWER] is spoken by Sígfrid Gràcia
['Q2522957', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q2522957 property:P1412 ?a . ?a rdf:type ontology:Q34770 }
Spanish
Spanish is spoken by Sígfrid Gràcia
Spanish
action filter_type
action find
entity Sígfrid Gràcia
relation languages spoken, written or signed
type language
['Sígfrid Gràcia', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:Sígfrid_Gràcia property:languages_spoken,_written_or_signed ?a . ?a rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1321
P495
Q11424
USER
What originated in that language ?
(c(Q11424),P495,Q1321)
action filter_type
action find_reverse
entity Q1321
relation P495
type Q11424
[{'concept': 'Q11424'}, 'P495', 'Q1321']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q11424 . ?d property:P495 resource:Q1321 }
Spanish
action filter_type
action find_reverse
entity Spanish
relation country of origin
type film
[{'concept': 'film'}, 'country of origin', 'Spanish']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:film . ?d property:country_of_origin resource:Spanish }
[]
film
Q2640141
SYSTEM
Vampires in Havana
Q2640141
(c(Q11424),P495,Q1321)
action filter_type
action find_reverse
entity Q1321
relation P495
type Q11424
[ANSWER] originated in that language
[{'concept': 'Q11424'}, 'P495', 'Q1321']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q11424 . ?d property:P495 resource:Q1321 }
Vampires in Havana
Vampires in Havana originated in that language
Vampires in Havana
action filter_type
action find_reverse
entity Spanish
relation country of origin
type film
[{'concept': 'film'}, 'country of origin', 'Spanish']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:film . ?d property:country_of_origin resource:Spanish }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2736
P466
Q1076486 Q483110
USER
How many sports venues and stadia are occupied by association football ?
(c(Q1076486),P466,Q2736) (c(Q483110),P466,Q2736)
action count
action union
action filter_type
action find_reverse
entity Q2736
relation P466
type Q1076486
action filter_type
action find_reverse
entity Q2736
relation P466
type Q483110
[{'concept': 'Q1076486'}, 'P466', 'Q2736'] [{'concept': 'Q483110'}, 'P466', 'Q2736']
SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { { ?j rdf:type ontology:Q1076486 . ?j property:P466 resource:Q2736 } UNION { ?j property:P466 resource:Q2736 . ?j rdf:type ontology:Q483110 } }
association football
action count
action union
action filter_type
action find_reverse
entity association football
relation occupant
type sports venue
action filter_type
action find_reverse
entity association football
relation occupant
type stadium
[{'concept': 'sports venue'}, 'occupant', 'association football'] [{'concept': 'stadium'}, 'occupant', 'association football']
SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { { ?j rdf:type ontology:sports_venue . ?j property:occupant resource:association_football } UNION { ?j property:occupant resource:association_football . ?j rdf:type ontology:stadium } }
[]
sports venue stadium
SYSTEM
1 sports venues and 1 stadia
Q5402116 Q6800202
(c(Q1076486),P466,Q2736) (c(Q483110),P466,Q2736)
action count
action union
action filter_type
action find_reverse
entity Q2736
relation P466
type Q1076486
action filter_type
action find_reverse
entity Q2736
relation P466
type Q483110
[ANSWER]
[{'concept': 'Q1076486'}, 'P466', 'Q2736'] [{'concept': 'Q483110'}, 'P466', 'Q2736']
SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { { ?j rdf:type ontology:Q1076486 . ?j property:P466 resource:Q2736 } UNION { ?j property:P466 resource:Q2736 . ?j rdf:type ontology:Q483110 } }
Estádio Municipal Radialista Mário Helênio McCarthy Stadium
1 sports venues and 1 stadia
action count
action union
action filter_type
action find_reverse
entity association football
relation occupant
type sports venue
action filter_type
action find_reverse
entity association football
relation occupant
type stadium
[{'concept': 'sports venue'}, 'occupant', 'association football'] [{'concept': 'stadium'}, 'occupant', 'association football']
SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { { ?j rdf:type ontology:sports_venue . ?j property:occupant resource:association_football } UNION { ?j property:occupant resource:association_football . ?j rdf:type ontology:stadium } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P144
Q838948 Q223393 Q11424
USER
Which films are based on around 1 works of art and literary genres ?
(c(Q11424),P144,c(Q838948)|c(Q223393))
action approx
action union
action find_tuple_counts
relation P144
type Q11424
type Q838948
action find_tuple_counts
relation P144
type Q11424
type Q223393
value 1
[{'concept': 'Q11424'}, 'P144', [{'concept': 'Q838948'}, {'concept': 'Q223393'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?z ) AS ?d ) WHERE { { ?m property:P144 ?z . ?m rdf:type ontology:Q11424 . ?z rdf:type ontology:Q838948 } UNION { ?m rdf:type ontology:Q11424 . ?z rdf:type ontology:Q223393 . ?m property:P144 ?z } } GROUP BY ?m } . FILTER ( ?d = 1 ) }
action approx
action union
action find_tuple_counts
relation based on
type film
type work of art
action find_tuple_counts
relation based on
type film
type literary genre
value 1
[{'concept': 'film'}, 'based on', [{'concept': 'work of art'}, {'concept': 'literary genre'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?z ) AS ?d ) WHERE { { ?m property:based_on ?z . ?m rdf:type ontology:film . ?z rdf:type ontology:work_of_art } UNION { ?m rdf:type ontology:film . ?z rdf:type ontology:literary_genre . ?m property:based_on ?z } } GROUP BY ?m } . FILTER ( ?d = 1 ) }
[]
work of art literary genre film
Q270470 Q134430 Q917278
SYSTEM
Peter Pan, Snow White and the Seven Dwarfs, Tokyo Godfathers
Q1235519 Q785237 Q917278 Q965266 Q270470 Q134430
(c(Q11424),P144,c(Q838948)|c(Q223393))
action approx
action union
action find_tuple_counts
relation P144
type Q11424
type Q838948
action find_tuple_counts
relation P144
type Q11424
type Q223393
value 1
[ANSWERS] are based on around 1 works of art and literary genres
[{'concept': 'Q11424'}, 'P144', [{'concept': 'Q838948'}, {'concept': 'Q223393'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?z ) AS ?d ) WHERE { { ?m property:P144 ?z . ?m rdf:type ontology:Q11424 . ?z rdf:type ontology:Q838948 } UNION { ?m rdf:type ontology:Q11424 . ?z rdf:type ontology:Q223393 . ?m property:P144 ?z } } GROUP BY ?m } . FILTER ( ?d = 1 ) }
Panda and the Magic Serpent The Tragedy of Man Tokyo Godfathers Thumbelina Peter Pan Snow White and the Seven Dwarfs
Peter Pan, Snow White and the Seven Dwarfs and Tokyo Godfathers are based on around 1 works of art and literary genres
Peter Pan Snow White and the Seven Dwarfs Tokyo Godfathers
action approx
action union
action find_tuple_counts
relation based on
type film
type work of art
action find_tuple_counts
relation based on
type film
type literary genre
value 1
[{'concept': 'film'}, 'based on', [{'concept': 'work of art'}, {'concept': 'literary genre'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?z ) AS ?d ) WHERE { { ?m property:based_on ?z . ?m rdf:type ontology:film . ?z rdf:type ontology:work_of_art } UNION { ?m rdf:type ontology:film . ?z rdf:type ontology:literary_genre . ?m property:based_on ?z } } GROUP BY ?m } . FILTER ( ?d = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q917278
P86
Q502895
USER
Who was that film composed by ?
(Q917278,P86,c(Q502895))
action filter_type
action find
entity Q917278
relation P86
type Q502895
['Q917278', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . resource:Q917278 property:P86 ?y }
Tokyo Godfathers
action filter_type
action find
entity Tokyo Godfathers
relation composer
type common name
['Tokyo Godfathers', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . resource:Tokyo_Godfathers property:composer ?y }
[]
common name
Clarification for simple ques.
Q917278
SYSTEM
Did you mean Tokyo Godfathers ?
Q270470 Q134430 Q917278
(Q270470,P86,c(Q502895)) (Q134430,P86,c(Q502895)) (Q917278,P86,c(Q502895))
[ANSWER]
['Q270470', 'P86', {'concept': 'Q502895'}] ['Q134430', 'P86', {'concept': 'Q502895'}] ['Q917278', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . resource:Q917278 property:P86 ?y }
Peter Pan Snow White and the Seven Dwarfs Tokyo Godfathers
Did you mean Tokyo Godfathers ?
Tokyo Godfathers
['Peter Pan', 'composer', {'concept': 'common name'}] ['Snow White and the Seven Dwarfs', 'composer', {'concept': 'common name'}] ['Tokyo Godfathers', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . resource:Tokyo_Godfathers property:composer ?y }
[]
Simple Question (Coreferenced)
USER
Yes
(Q917278,P86,c(Q502895))
['Q917278', 'P86', {'concept': 'Q502895'}]
['Tokyo Godfathers', 'composer', {'concept': 'common name'}]
[]
Q893230
SYSTEM
Keiichi Suzuki
Q893230
(Q917278,P86,c(Q502895))
action filter_type
action find
entity Q917278
relation P86
type Q502895
[ANSWER] that film was composed by
['Q917278', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . resource:Q917278 property:P86 ?y }
Keiichi Suzuki
Keiichi Suzuki that film was composed by
Keiichi Suzuki
action filter_type
action find
entity Tokyo Godfathers
relation composer
type common name
['Tokyo Godfathers', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . resource:Tokyo_Godfathers property:composer ?y }
[]