Simple Question (Direct)
Simple Question
Q6219086
P19
Q56061
USER
Which administrative territory was John Andrews born in ?
(Q6219086,P19,c(Q56061))
action filter_type
action find
entity Q6219086
relation P19
type Q56061
['Q6219086', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q6219086 property:P19 ?c . ?c rdf:type ontology:Q56061 }
John Andrews
action filter_type
action find
entity John Andrews
relation place of birth
type administrative territorial entity
['John Andrews', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:John_Andrews property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q42462
SYSTEM
York
Q42462
(Q6219086,P19,c(Q56061))
action filter_type
action find
entity Q6219086
relation P19
type Q56061
John Andrews was born in [ANSWER]
['Q6219086', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q6219086 property:P19 ?c . ?c rdf:type ontology:Q56061 }
York
John Andrews was born in York
York
action filter_type
action find
entity John Andrews
relation place of birth
type administrative territorial entity
['John Andrews', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:John_Andrews property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6219086
P641
Q349
USER
Which sport was that person a part of ?
(Q42462,P641,c(Q349))
action filter_type
action find
entity Q6219086
relation P641
type Q349
['Q42462', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { resource:Q6219086 property:P641 ?e . ?e rdf:type ontology:Q349 }
John Andrews
action filter_type
action find
entity John Andrews
relation sport
type sport
['York', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { resource:John_Andrews property:sport ?e . ?e rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q42462,P641,c(Q349))
action filter_type
action find
entity Q6219086
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q42462', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { resource:Q6219086 property:P641 ?e . ?e rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity John Andrews
relation sport
type sport
['York', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { resource:John_Andrews property:sport ?e . ?e rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P805
Q838948
USER
Which work of art is main subject of that sport ?
(c(Q838948),P805,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P805
type Q838948
[{'concept': 'Q838948'}, 'P805', 'Q2736']
SELECT DISTINCT ?e WHERE { ?e property:P805 resource:Q2736 . ?e rdf:type ontology:Q838948 }
association football
action filter_type
action find_reverse
entity association football
relation subject of
type work of art
[{'concept': 'work of art'}, 'subject of', 'association football']
SELECT DISTINCT ?e WHERE { ?e property:subject_of resource:association_football . ?e rdf:type ontology:work_of_art }
[]
work of art
Q869862
SYSTEM
Goal!
Q869862
(c(Q838948),P805,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P805
type Q838948
Is [ANSWER] is main subject of that sport
[{'concept': 'Q838948'}, 'P805', 'Q2736']
SELECT DISTINCT ?e WHERE { ?e property:P805 resource:Q2736 . ?e rdf:type ontology:Q838948 }
Goal!
Is Goal! is main subject of that sport
Goal!
action filter_type
action find_reverse
entity association football
relation subject of
type work of art
[{'concept': 'work of art'}, 'subject of', 'association football']
SELECT DISTINCT ?e WHERE { ?e property:subject_of resource:association_football . ?e rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q869862
P58
Q502895
USER
Which person wrote the script for that work of art ?
(Q869862,P58,c(Q502895))
action filter_type
action find
entity Q869862
relation P58
type Q502895
['Q869862', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q869862 property:P58 ?w . ?w rdf:type ontology:Q502895 }
Goal!
action filter_type
action find
entity Goal!
relation screenwriter
type common name
['Goal!', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Goal! property:screenwriter ?w . ?w rdf:type ontology:common_name }
[]
common name
Q711682
SYSTEM
Dick Clement
Q711682
(Q869862,P58,c(Q502895))
action filter_type
action find
entity Q869862
relation P58
type Q502895
[ANSWER] wrote the script for that work of art
['Q869862', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q869862 property:P58 ?w . ?w rdf:type ontology:Q502895 }
Dick Clement
Dick Clement wrote the script for that work of art
Dick Clement
action filter_type
action find
entity Goal!
relation screenwriter
type common name
['Goal!', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Goal! property:screenwriter ?w . ?w rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q15961987
USER
How many television genres have been dubbed by exactly 1 person ?
(c(Q15961987),P725,c(Q502895))
action count
action equal
action find_tuple_counts
relation P725
type Q15961987
type Q502895
value 1
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?i ) WHERE { ?k property:P725 ?p . ?k rdf:type ontology:Q15961987 . ?p rdf:type ontology:Q502895 } GROUP BY ?k } . FILTER ( ?i = 1 ) }
action count
action equal
action find_tuple_counts
relation voice actor
type television genre
type common name
value 1
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?i ) WHERE { ?k property:voice_actor ?p . ?k rdf:type ontology:television_genre . ?p rdf:type ontology:common_name } GROUP BY ?k } . FILTER ( ?i = 1 ) }
[]
common name television genre
SYSTEM
3
Q11572 Q847219 Q917543
(c(Q15961987),P725,c(Q502895))
action count
action equal
action find_tuple_counts
relation P725
type Q15961987
type Q502895
value 1
[ANSWER]
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?i ) WHERE { ?k property:P725 ?p . ?k rdf:type ontology:Q15961987 . ?p rdf:type ontology:Q502895 } GROUP BY ?k } . FILTER ( ?i = 1 ) }
Avatar: The Last Airbender Pururun! Shizuku-chan The Garfield Show
3
action count
action equal
action find_tuple_counts
relation voice actor
type television genre
type common name
value 1
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?i ) WHERE { ?k property:voice_actor ?p . ?k rdf:type ontology:television_genre . ?p rdf:type ontology:common_name } GROUP BY ?k } . FILTER ( ?i = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q42462
P840
Q2342494
USER
Which collectables have a setting location of York ?
(c(Q2342494),P840,Q42462)
action filter_type
action find_reverse
entity Q42462
relation P840
type Q2342494
[{'concept': 'Q2342494'}, 'P840', 'Q42462']
SELECT DISTINCT ?j WHERE { ?j property:P840 resource:Q42462 . ?j rdf:type ontology:Q2342494 }
York
action filter_type
action find_reverse
entity York
relation narrative location
type collectable
[{'concept': 'collectable'}, 'narrative location', 'York']
SELECT DISTINCT ?j WHERE { ?j property:narrative_location resource:York . ?j rdf:type ontology:collectable }
[]
collectable
Q1145208 Q4880897 Q16995588
SYSTEM
Sovereign, Behind the Scenes at the Museum, Kay the Left-Handed
Q4658949 Q1145208 Q4880897 Q16995588 Q7715640
(c(Q2342494),P840,Q42462)
action filter_type
action find_reverse
entity Q42462
relation P840
type Q2342494
[ANSWERS] have a setting location of York
[{'concept': 'Q2342494'}, 'P840', 'Q42462']
SELECT DISTINCT ?j WHERE { ?j property:P840 resource:Q42462 . ?j rdf:type ontology:Q2342494 }
A Political Romance Sovereign Behind the Scenes at the Museum Kay the Left-Handed The Baritone Wore Chiffon
Sovereign, Behind the Scenes at the Museum and Kay the Left-Handed have a setting location of York
Sovereign Behind the Scenes at the Museum Kay the Left-Handed
action filter_type
action find_reverse
entity York
relation narrative location
type collectable
[{'concept': 'collectable'}, 'narrative location', 'York']
SELECT DISTINCT ?j WHERE { ?j property:narrative_location resource:York . ?j rdf:type ontology:collectable }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1145208
P136
Q1792379
USER
What can be considered as category for that collectable ?
(Q1145208,P136,c(Q1792379))
action filter_type
action find
entity Q1145208
relation P136
type Q1792379
['Q1145208', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?c WHERE { resource:Q1145208 property:P136 ?c . ?c rdf:type ontology:Q1792379 }
Sovereign
action filter_type
action find
entity Sovereign
relation genre
type art genre
['Sovereign', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?c WHERE { resource:Sovereign property:genre ?c . ?c rdf:type ontology:art_genre }
[]
art genre
Clarification for simple ques.
Q16995588
SYSTEM
Did you mean Kay the Left-Handed ?
Q1145208 Q4880897 Q16995588
(Q1145208,P136,c(Q1792379)) (Q4880897,P136,c(Q1792379)) (Q16995588,P136,c(Q1792379))
[ANSWER]
['Q1145208', 'P136', {'concept': 'Q1792379'}] ['Q4880897', 'P136', {'concept': 'Q1792379'}] ['Q16995588', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?c WHERE { resource:Q1145208 property:P136 ?c . ?c rdf:type ontology:Q1792379 }
Sovereign Behind the Scenes at the Museum Kay the Left-Handed
Did you mean Kay the Left-Handed ?
Kay the Left-Handed
['Sovereign', 'genre', {'concept': 'art genre'}] ['Behind the Scenes at the Museum', 'genre', {'concept': 'art genre'}] ['Kay the Left-Handed', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?c WHERE { resource:Sovereign property:genre ?c . ?c rdf:type ontology:art_genre }
[]
Simple Question (Coreferenced)
USER
No, I meant Sovereign. Could you tell me the answer for that?
(Q1145208,P136,c(Q1792379))
Q1145208
['Q1145208', 'P136', {'concept': 'Q1792379'}]
['Sovereign', 'genre', {'concept': 'art genre'}]
[]
Q8261 Q208505
SYSTEM
novel, crime novel
Q8261 Q208505
(Q1145208,P136,c(Q1792379))
action filter_type
action find
entity Q1145208
relation P136
type Q1792379
And [ANSWERS] can be considered as category for that collectable
['Q1145208', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?c WHERE { resource:Q1145208 property:P136 ?c . ?c rdf:type ontology:Q1792379 }
novel crime novel
And novel and crime novel can be considered as category for that collectable
novel crime novel
action filter_type
action find
entity Sovereign
relation genre
type art genre
['Sovereign', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?c WHERE { resource:Sovereign property:genre ?c . ?c rdf:type ontology:art_genre }
[]