Simple Question (Direct)
Simple Question
Q800656
P17
Q15617994
USER
Which administrative territory is Den Haag Laan van NOI a part of ?
(Q800656,P17,c(Q15617994))
action filter_type
action find
entity Q800656
relation P17
type Q15617994
['Q800656', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q800656 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
Den Haag Laan van NOI
action filter_type
action find
entity Den Haag Laan van NOI
relation country
type designation for an administrative territorial entity
['Den Haag Laan van NOI', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Den_Haag_Laan_van_NOI property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55
SYSTEM
Netherlands
Q55
(Q800656,P17,c(Q15617994))
action filter_type
action find
entity Q800656
relation P17
type Q15617994
[ANSWER] is Den Haag Laan van NOI a part of
['Q800656', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q800656 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
Netherlands
Netherlands is Den Haag Laan van NOI a part of
Netherlands
action filter_type
action find
entity Den Haag Laan van NOI
relation country
type designation for an administrative territorial entity
['Den Haag Laan van NOI', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Den_Haag_Laan_van_NOI property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q55
P840
Q2342494
USER
Which collectables have their setting located at that administrative territory ?
(c(Q2342494),P840,Q55)
action filter_type
action find_reverse
entity Q55
relation P840
type Q2342494
[{'concept': 'Q2342494'}, 'P840', 'Q55']
SELECT DISTINCT ?y WHERE { ?y property:P840 resource:Q55 . ?y rdf:type ontology:Q2342494 }
Netherlands
action filter_type
action find_reverse
entity Netherlands
relation narrative location
type collectable
[{'concept': 'collectable'}, 'narrative location', 'Netherlands']
SELECT DISTINCT ?y WHERE { ?y property:narrative_location resource:Netherlands . ?y rdf:type ontology:collectable }
[]
collectable
Q7680725 Q2205732 Q2304825
SYSTEM
Tamar, Confessions of an Ugly Stepsister, Puppet on a Chain
Q3972449 Q2304825 Q7680725 Q5302851 Q7734189 Q5575695 Q5460091 Q2277829 Q5242853 Q2205732 Q7770872 Q7743933 Q5256461 Q7746356 Q4398917 Q1212173 Q1141764 Q1192107 Q2195793 Q4920400 Q1170871 Q3548512
(c(Q2342494),P840,Q55)
action filter_type
action find_reverse
entity Q55
relation P840
type Q2342494
[ANSWERS] have their setting located at that administrative territory
[{'concept': 'Q2342494'}, 'P840', 'Q55']
SELECT DISTINCT ?y WHERE { ?y property:P840 resource:Q55 . ?y rdf:type ontology:Q2342494 }
The Legend of Thyl Ulenspiegel and Lamme Goedzak Puppet on a Chain Tamar Down Ryton Water The First Sir Percy God's Fool Floodgate Catriona Day On Skates: The Story of a Dutch Picnic Confessions of an Ugly Stepsister The Twin The Kaiser's Last Kiss Den Haag The Laughing Cavalier Quicksilver The Discovery of Heaven The Black Tulip Girl with a Pearl Earring Journey Through the Night Black Book Het Woeden der Gehele Wereld Maigret in Holland
Tamar, Confessions of an Ugly Stepsister and Puppet on a Chain have their setting located at that administrative territory
Tamar Confessions of an Ugly Stepsister Puppet on a Chain
action filter_type
action find_reverse
entity Netherlands
relation narrative location
type collectable
[{'concept': 'collectable'}, 'narrative location', 'Netherlands']
SELECT DISTINCT ?y WHERE { ?y property:narrative_location resource:Netherlands . ?y rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q7680725 Q2205732 Q2304825
P840
Q15617994
USER
Where are those collectables set in ?
(Q7680725,P840,c(Q15617994)) (Q2205732,P840,c(Q15617994)) (Q2304825,P840,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P840
type Q15617994
['Q7680725', 'P840', {'concept': 'Q15617994'}] ['Q2205732', 'P840', {'concept': 'Q15617994'}] ['Q2304825', 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . VALUES ( ?g ) { ( resource:Q3972449 ) ( resource:Q2304825 ) ( resource:Q7680725 ) } . ?g property:P840 ?k }
Tamar Confessions of an Ugly Stepsister Puppet on a Chain
action filter_type
action find
entity prev_answer
relation narrative location
type designation for an administrative territorial entity
['Tamar', 'narrative location', {'concept': 'designation for an administrative territorial entity'}] ['Confessions of an Ugly Stepsister', 'narrative location', {'concept': 'designation for an administrative territorial entity'}] ['Puppet on a Chain', 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?g ) { ( resource:The_Legend_of_Thyl_Ulenspiegel_and_Lamme_Goedzak ) ( resource:Puppet_on_a_Chain ) ( resource:Tamar ) } . ?g property:narrative_location ?k }
[]
designation for an administrative territorial entity
Q55 Q55 Q55
SYSTEM
Netherlands
Q55 Q55 Q55
(Q7680725,P840,c(Q15617994)) (Q2205732,P840,c(Q15617994)) (Q2304825,P840,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P840
type Q15617994
Those collectables are set in the [ANSWER], [ANSWER] and [ANSWER]
['Q7680725', 'P840', {'concept': 'Q15617994'}] ['Q2205732', 'P840', {'concept': 'Q15617994'}] ['Q2304825', 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . VALUES ( ?g ) { ( resource:Q3972449 ) ( resource:Q2304825 ) ( resource:Q7680725 ) } . ?g property:P840 ?k }
Netherlands Netherlands Netherlands
Those collectables are set in the Netherlands, Netherlands and Netherlands
Netherlands Netherlands Netherlands
action filter_type
action find
entity prev_answer
relation narrative location
type designation for an administrative territorial entity
['Tamar', 'narrative location', {'concept': 'designation for an administrative territorial entity'}] ['Confessions of an Ugly Stepsister', 'narrative location', {'concept': 'designation for an administrative territorial entity'}] ['Puppet on a Chain', 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?g ) { ( resource:The_Legend_of_Thyl_Ulenspiegel_and_Lamme_Goedzak ) ( resource:Puppet_on_a_Chain ) ( resource:Tamar ) } . ?g property:narrative_location ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7680725
P50
Q502895
USER
Who was the writer of Tamar ?
(Q7680725,P50,c(Q502895))
action filter_type
action find
entity Q7680725
relation P50
type Q502895
['Q7680725', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q7680725 property:P50 ?c . ?c rdf:type ontology:Q502895 }
Tamar
action filter_type
action find
entity Tamar
relation author
type common name
['Tamar', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Tamar property:author ?c . ?c rdf:type ontology:common_name }
[]
common name
Q1886587
SYSTEM
Mal Peet
Q1886587
(Q7680725,P50,c(Q502895))
action filter_type
action find
entity Q7680725
relation P50
type Q502895
The writer of Tamar was the [ANSWER]
['Q7680725', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q7680725 property:P50 ?c . ?c rdf:type ontology:Q502895 }
Mal Peet
The writer of Tamar was the Mal Peet
Mal Peet
action filter_type
action find
entity Tamar
relation author
type common name
['Tamar', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Tamar property:author ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7680725
P166
Q618779
USER
What was received by that collectable ?
(Q1886587,P166,c(Q618779))
action filter_type
action find
entity Q7680725
relation P166
type Q618779
['Q1886587', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?s WHERE { resource:Q7680725 property:P166 ?s . ?s rdf:type ontology:Q618779 }
Tamar
action filter_type
action find
entity Tamar
relation award received
type award
['Mal Peet', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?s WHERE { resource:Tamar property:award_received ?s . ?s rdf:type ontology:award }
[]
award
Q1043985
SYSTEM
Carnegie Medal
Q1043985
(Q1886587,P166,c(Q618779))
action filter_type
action find
entity Q7680725
relation P166
type Q618779
The [ANSWER] was received by that collectable
['Q1886587', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?s WHERE { resource:Q7680725 property:P166 ?s . ?s rdf:type ontology:Q618779 }
Carnegie Medal
The Carnegie Medal was received by that collectable
Carnegie Medal
action filter_type
action find
entity Tamar
relation award received
type award
['Mal Peet', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?s WHERE { resource:Tamar property:award_received ?s . ?s rdf:type ontology:award }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1043985
P1346
Q502895
USER
Which people were the winner of that award ?
(Q1043985,P1346,c(Q502895))
action filter_type
action find
entity Q1043985
relation P1346
type Q502895
['Q1043985', 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q1043985 property:P1346 ?c . ?c rdf:type ontology:Q502895 }
Carnegie Medal
action filter_type
action find
entity Carnegie Medal
relation winner
type common name
['Carnegie Medal', 'winner', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Carnegie_Medal property:winner ?c . ?c rdf:type ontology:common_name }
[]
common name
Q210059 Q9204 Q46248
SYSTEM
Neil Gaiman, C. S. Lewis, Terry Pratchett
Q4945053 Q981086 Q276472 Q190220 Q17106376 Q242571 Q313289 Q4958534 Q1190051 Q532757 Q470302 Q467058 Q508765 Q1347607 Q5079712 Q1760291 Q16014832 Q3404949 Q5341926 Q7323782 Q4983305 Q9204 Q3270582 Q919835 Q275633 Q446747 Q139506 Q705074 Q1886587 Q265756 Q1148078 Q1233018 Q464963 Q5962373 Q535822 Q4937558 Q457371 Q262274 Q359498 Q4955103 Q46248 Q510811 Q2064855 Q706856 Q384481 Q1740117 Q5238959 Q515845 Q6698412 Q258669 Q951657 Q448246 Q254215 Q2579910 Q403877 Q210059 Q600261 Q4988543 Q4952797 Q717520 Q7492388 Q3270328 Q380983 Q5359930 Q937084 Q275092 Q2057843 Q3244263
(Q1043985,P1346,c(Q502895))
action filter_type
action find
entity Q1043985
relation P1346
type Q502895
[ANSWERS] were the winner of that award
['Q1043985', 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q1043985 property:P1346 ?c . ?c rdf:type ontology:Q502895 }
Eleanor Doorly Walter de la Mare Berlie Doherty Philip Pullman Edward Osmond Elizabeth Goudge Richard Adams Gene Kemp Denys Watkins-Pitchford Beverley Naidoo Meg Rosoff Noel Streatfeild Philippa Pearce Ivan Southall Charles Keeping Leon Garfield Hester Burton Ronald Welch Edward Blishen Richard Armstrong Mary Treadgold C. S. Lewis Susan Price Eric Linklater Margaret Mahy Theresa Breslin Pauline Clarke Peter Dickinson Mal Peet Mary Norton Cynthia Harnett Frank Cottrell Boyce Jennifer Donnelly Philip Turner Sally Gardner Kitty Barne Geraldine McCaughrean Penelope Lively Robert Westall Mollie Hunter Terry Pratchett Sharon Creech Robert Swindells David Almond Alan Garner Kevin Crossley-Holland David Rees Arthur Ransome Lucy M. Boston Eleanor Farjeon Melvin Burgess Anne Fine Rosemary Sutcliff William Mayne Aidan Chambers Neil Gaiman Tim Bowler Eve Garnett Rosemary Harris Kevin Brooks Sheena Porter Jan Mark Siobhan Dowd Elfrida Vipont Philip Reeve Gillian Cross Patrick Ness K.M. Peyton
Neil Gaiman, C. S. Lewis and Terry Pratchett were the winner of that award
Neil Gaiman C. S. Lewis Terry Pratchett
action filter_type
action find
entity Carnegie Medal
relation winner
type common name
['Carnegie Medal', 'winner', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Carnegie_Medal property:winner ?c . ?c rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4921542
P1346
Q618779
USER
Were those people decalred as a champion of Black Reel Award for Best Actor ?
(Q4921542,P1346,Q210059) (Q4921542,P1346,Q9204) (Q4921542,P1346,Q46248)
action is_in
entity prev_answer
action find
entity Q4921542
relation P1346
['Q4921542', 'P1346', 'Q210059'] ['Q4921542', 'P1346', 'Q9204'] ['Q4921542', 'P1346', 'Q46248']
ASK WHERE { resource:Q4921542 property:P1346 ?u . VALUES ( ?u ) { ( resource:Q4945053 ) ( resource:Q981086 ) ( resource:Q276472 ) } }
Black Reel Award for Best Actor
action is_in
entity prev_answer
action find
entity Black Reel Award for Best Actor
relation winner
['Black Reel Award for Best Actor', 'winner', 'Neil Gaiman'] ['Black Reel Award for Best Actor', 'winner', 'C. S. Lewis'] ['Black Reel Award for Best Actor', 'winner', 'Terry Pratchett']
ASK WHERE { resource:Black_Reel_Award_for_Best_Actor property:winner ?u . VALUES ( ?u ) { ( resource:Eleanor_Doorly ) ( resource:Walter_de_la_Mare ) ( resource:Berlie_Doherty ) } }
[]
award
SYSTEM
NO
(Q4921542,P1346,Q210059) (Q4921542,P1346,Q9204) (Q4921542,P1346,Q46248)
action is_in
entity prev_answer
action find
entity Q4921542
relation P1346
[ANSWER]
['Q4921542', 'P1346', 'Q210059'] ['Q4921542', 'P1346', 'Q9204'] ['Q4921542', 'P1346', 'Q46248']
ASK WHERE { resource:Q4921542 property:P1346 ?u . VALUES ( ?u ) { ( resource:Q4945053 ) ( resource:Q981086 ) ( resource:Q276472 ) } }
No
action is_in
entity prev_answer
action find
entity Black Reel Award for Best Actor
relation winner
['Black Reel Award for Best Actor', 'winner', 'Neil Gaiman'] ['Black Reel Award for Best Actor', 'winner', 'C. S. Lewis'] ['Black Reel Award for Best Actor', 'winner', 'Terry Pratchett']
ASK WHERE { resource:Black_Reel_Award_for_Best_Actor property:winner ?u . VALUES ( ?u ) { ( resource:Eleanor_Doorly ) ( resource:Walter_de_la_Mare ) ( resource:Berlie_Doherty ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2304825 Q145
P495
Q15617994
USER
Did Puppet on a Chain originate United Kingdom ?
(Q2304825,P495,Q145)
action is_in
entity Q145
action find
entity Q2304825
relation P495
['Q2304825', 'P495', 'Q145']
ASK WHERE { resource:Q2304825 property:P495 resource:Q145 }
Puppet on a Chain United Kingdom
action is_in
entity United Kingdom
action find
entity Puppet on a Chain
relation country of origin
['Puppet on a Chain', 'country of origin', 'United Kingdom']
ASK WHERE { resource:Puppet_on_a_Chain property:country_of_origin resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q2304825,P495,Q145)
action is_in
entity Q145
action find
entity Q2304825
relation P495
[ANSWER]
['Q2304825', 'P495', 'Q145']
ASK WHERE { resource:Q2304825 property:P495 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity Puppet on a Chain
relation country of origin
['Puppet on a Chain', 'country of origin', 'United Kingdom']
ASK WHERE { resource:Puppet_on_a_Chain property:country_of_origin resource:United_Kingdom }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q9204
P58
Q15416 Q838948
USER
How many television programs or works of art did C. S. Lewis do the screenwriting for ?
(c(Q15416),P58,Q9204) (c(Q838948),P58,Q9204)
action count
action union
action filter_type
action find_reverse
entity Q9204
relation P58
type Q15416
action filter_type
action find_reverse
entity Q9204
relation P58
type Q838948
[{'concept': 'Q15416'}, 'P58', 'Q9204'] [{'concept': 'Q838948'}, 'P58', 'Q9204']
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { VALUES ( ?m ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?c rdf:type ?m }
C. S. Lewis
action count
action union
action filter_type
action find_reverse
entity C. S. Lewis
relation screenwriter
type television program
action filter_type
action find_reverse
entity C. S. Lewis
relation screenwriter
type work of art
[{'concept': 'television program'}, 'screenwriter', 'C. S. Lewis'] [{'concept': 'work of art'}, 'screenwriter', 'C. S. Lewis']
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { VALUES ( ?m ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?c rdf:type ?m }
[]
television program work of art
SYSTEM
2
Q2078932 Q647369
(c(Q15416),P58,Q9204) (c(Q838948),P58,Q9204)
action count
action union
action filter_type
action find_reverse
entity Q9204
relation P58
type Q15416
action filter_type
action find_reverse
entity Q9204
relation P58
type Q838948
[ANSWER]
[{'concept': 'Q15416'}, 'P58', 'Q9204'] [{'concept': 'Q838948'}, 'P58', 'Q9204']
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { VALUES ( ?m ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?c rdf:type ?m }
The Lion, the Witch and the Wardrobe The Lion, the Witch and the Wardrobe
2
action count
action union
action filter_type
action find_reverse
entity C. S. Lewis
relation screenwriter
type television program
action filter_type
action find_reverse
entity C. S. Lewis
relation screenwriter
type work of art
[{'concept': 'television program'}, 'screenwriter', 'C. S. Lewis'] [{'concept': 'work of art'}, 'screenwriter', 'C. S. Lewis']
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { VALUES ( ?m ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?c rdf:type ?m }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P674
Q95074 Q502895 Q2342494
USER
Which collectables have the character approximately 22 fictional characters or people ?
(c(Q2342494),P674,c(Q95074)|c(Q502895))
action approx
action union
action find_tuple_counts
relation P674
type Q2342494
type Q95074
action find_tuple_counts
relation P674
type Q2342494
type Q502895
value 22
[{'concept': 'Q2342494'}, 'P674', [{'concept': 'Q95074'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?d ) AS ?s ) WHERE { { ?i property:P674 ?d . ?i rdf:type ontology:Q2342494 . ?d rdf:type ontology:Q95074 } UNION { ?d rdf:type ontology:Q502895 . ?i rdf:type ontology:Q2342494 . ?i property:P674 ?d } } GROUP BY ?i } . FILTER ( ?s = 22 ) }
action approx
action union
action find_tuple_counts
relation characters
type collectable
type fictional character
action find_tuple_counts
relation characters
type collectable
type common name
value 22
[{'concept': 'collectable'}, 'characters', [{'concept': 'fictional character'}, {'concept': 'common name'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?d ) AS ?s ) WHERE { { ?i property:characters ?d . ?i rdf:type ontology:collectable . ?d rdf:type ontology:fictional_character } UNION { ?d rdf:type ontology:common_name . ?i rdf:type ontology:collectable . ?i property:characters ?d } } GROUP BY ?i } . FILTER ( ?s = 22 ) }
[]
fictional character common name collectable
Q140527
SYSTEM
The Three Musketeers
Q140527
(c(Q2342494),P674,c(Q95074)|c(Q502895))
action approx
action union
action find_tuple_counts
relation P674
type Q2342494
type Q95074
action find_tuple_counts
relation P674
type Q2342494
type Q502895
value 22
[ANSWER] have the character approximately 22 fictional characters or people
[{'concept': 'Q2342494'}, 'P674', [{'concept': 'Q95074'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?d ) AS ?s ) WHERE { { ?i property:P674 ?d . ?i rdf:type ontology:Q2342494 . ?d rdf:type ontology:Q95074 } UNION { ?d rdf:type ontology:Q502895 . ?i rdf:type ontology:Q2342494 . ?i property:P674 ?d } } GROUP BY ?i } . FILTER ( ?s = 22 ) }
The Three Musketeers
The Three Musketeers have the character approximately 22 fictional characters or people
The Three Musketeers
action approx
action union
action find_tuple_counts
relation characters
type collectable
type fictional character
action find_tuple_counts
relation characters
type collectable
type common name
value 22
[{'concept': 'collectable'}, 'characters', [{'concept': 'fictional character'}, {'concept': 'common name'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?d ) AS ?s ) WHERE { { ?i property:characters ?d . ?i rdf:type ontology:collectable . ?d rdf:type ontology:fictional_character } UNION { ?d rdf:type ontology:common_name . ?i rdf:type ontology:collectable . ?i property:characters ?d } } GROUP BY ?i } . FILTER ( ?s = 22 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q9204 Q7353885
P26
Q502895
USER
How many people are married to C. S. Lewis or Rochelle Lefkowitz ?
(Q9204,P26,c(Q502895)) (Q7353885,P26,c(Q502895))
action count
action union
action filter_type
action find
entity Q9204
relation P26
type Q502895
action filter_type
action find
entity Q7353885
relation P26
type Q502895
['Q9204', 'P26', {'concept': 'Q502895'}] ['Q7353885', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { { resource:Q9204 property:P26 ?v . ?v rdf:type ontology:Q502895 } UNION { resource:Q7353885 property:P26 ?v . ?v rdf:type ontology:Q502895 } }
C. S. Lewis Rochelle Lefkowitz
action count
action union
action filter_type
action find
entity C. S. Lewis
relation spouse
type common name
action filter_type
action find
entity Rochelle Lefkowitz
relation spouse
type common name
['C. S. Lewis', 'spouse', {'concept': 'common name'}] ['Rochelle Lefkowitz', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { { resource:C._S._Lewis property:spouse ?v . ?v rdf:type ontology:common_name } UNION { resource:Rochelle_Lefkowitz property:spouse ?v . ?v rdf:type ontology:common_name } }
[]
common name
SYSTEM
2
Q5442250 Q465594
(Q9204,P26,c(Q502895)) (Q7353885,P26,c(Q502895))
action count
action union
action filter_type
action find
entity Q9204
relation P26
type Q502895
action filter_type
action find
entity Q7353885
relation P26
type Q502895
[ANSWER]
['Q9204', 'P26', {'concept': 'Q502895'}] ['Q7353885', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { { resource:Q9204 property:P26 ?v . ?v rdf:type ontology:Q502895 } UNION { resource:Q7353885 property:P26 ?v . ?v rdf:type ontology:Q502895 } }
Felix Kramer Joy Davidman
2
action count
action union
action filter_type
action find
entity C. S. Lewis
relation spouse
type common name
action filter_type
action find
entity Rochelle Lefkowitz
relation spouse
type common name
['C. S. Lewis', 'spouse', {'concept': 'common name'}] ['Rochelle Lefkowitz', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { { resource:C._S._Lewis property:spouse ?v . ?v rdf:type ontology:common_name } UNION { resource:Rochelle_Lefkowitz property:spouse ?v . ?v rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q210059
P800
Q7725634
USER
What notable work was done by Neil Gaiman ?
(Q210059,P800,c(Q7725634))
action filter_type
action find
entity Q210059
relation P800
type Q7725634
['Q210059', 'P800', {'concept': 'Q7725634'}]
SELECT DISTINCT ?f WHERE { resource:Q210059 property:P800 ?f . ?f rdf:type ontology:Q7725634 }
Neil Gaiman
action filter_type
action find
entity Neil Gaiman
relation notable work
type literary work
['Neil Gaiman', 'notable work', {'concept': 'literary work'}]
SELECT DISTINCT ?f WHERE { resource:Neil_Gaiman property:notable_work ?f . ?f rdf:type ontology:literary_work }
[]
literary work
Q827099
SYSTEM
The Sandman
Q827099
(Q210059,P800,c(Q7725634))
action filter_type
action find
entity Q210059
relation P800
type Q7725634
[ANSWER] was done by Neil Gaiman
['Q210059', 'P800', {'concept': 'Q7725634'}]
SELECT DISTINCT ?f WHERE { resource:Q210059 property:P800 ?f . ?f rdf:type ontology:Q7725634 }
The Sandman
The Sandman was done by Neil Gaiman
The Sandman
action filter_type
action find
entity Neil Gaiman
relation notable work
type literary work
['Neil Gaiman', 'notable work', {'concept': 'literary work'}]
SELECT DISTINCT ?f WHERE { resource:Neil_Gaiman property:notable_work ?f . ?f rdf:type ontology:literary_work }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6028050
Q7725634
USER
And what about Sören Olsson?
(Q6028050,P800,c(Q7725634))
action filter_type
action find
entity Q6028050
relation P800
type Q7725634
['Q6028050', 'P800', {'concept': 'Q7725634'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q7725634 . resource:Q6028050 property:P800 ?k }
Sören Olsson
action filter_type
action find
entity Sören Olsson
relation notable work
type literary work
['Sören Olsson', 'notable work', {'concept': 'literary work'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:literary_work . resource:Sören_Olsson property:notable_work ?k }
[]
literary work
Q828664 Q4405234
SYSTEM
Bert Diaries, Sune
Q828664 Q4405234
(Q6028050,P800,c(Q7725634))
action filter_type
action find
entity Q6028050
relation P800
type Q7725634
[ANSWERS]
['Q6028050', 'P800', {'concept': 'Q7725634'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q7725634 . resource:Q6028050 property:P800 ?k }
Bert Diaries Sune
Bert Diaries Sune
action filter_type
action find
entity Sören Olsson
relation notable work
type literary work
['Sören Olsson', 'notable work', {'concept': 'literary work'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:literary_work . resource:Sören_Olsson property:notable_work ?k }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q9056
P407
Q34770 Q7725634
USER
How many languages are the languages of work for more number of literary works than Czech ?
(c(Q7725634),P407,c(Q34770))
action count
action greater
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_type
action find
entity Q9056
relation P407
type Q34770
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?f ) WHERE { ?i rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q34770 . ?i property:P407 ?y } GROUP BY ?y } . FILTER ( ?f > ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Q9056 property:P407 ?w . ?w rdf:type ontology:Q34770 } } }
Czech
action count
action greater
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_type
action find
entity Czech
relation language of work or name
type language
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?f ) WHERE { ?i rdf:type ontology:literary_work . ?y rdf:type ontology:language . ?i property:language_of_work_or_name ?y } GROUP BY ?y } . FILTER ( ?f > ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Czech property:language_of_work_or_name ?w . ?w rdf:type ontology:language } } }
[]
language literary work
SYSTEM
3
Q1860 Q1321 Q652
(c(Q7725634),P407,c(Q34770))
action count
action greater
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_type
action find
entity Q9056
relation P407
type Q34770
[ANSWER]
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?f ) WHERE { ?i rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q34770 . ?i property:P407 ?y } GROUP BY ?y } . FILTER ( ?f > ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Q9056 property:P407 ?w . ?w rdf:type ontology:Q34770 } } }
English Spanish Italian
3
action count
action greater
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_type
action find
entity Czech
relation language of work or name
type language
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?f ) WHERE { ?i rdf:type ontology:literary_work . ?y rdf:type ontology:language . ?i property:language_of_work_or_name ?y } GROUP BY ?y } . FILTER ( ?f > ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Czech property:language_of_work_or_name ?w . ?w rdf:type ontology:language } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q21161942
P407
Q34770 Q7725634
USER
And also tell me about Serbian written in Cyrillic?
(c(Q7725634),P407,c(Q34770))
action count
action greater
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_type
action find
entity Q21161942
relation P407
type Q34770
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?x ) WHERE { ?b rdf:type ontology:Q34770 . ?s rdf:type ontology:Q7725634 . ?s property:P407 ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:Q21161942 property:P407 ?n . ?n rdf:type ontology:Q34770 } } . FILTER ( ?x > ?j ) }
Serbian written in Cyrillic
action count
action greater
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_type
action find
entity Serbian written in Cyrillic
relation language of work or name
type language
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?x ) WHERE { ?b rdf:type ontology:language . ?s rdf:type ontology:literary_work . ?s property:language_of_work_or_name ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:Serbian_written_in_Cyrillic property:language_of_work_or_name ?n . ?n rdf:type ontology:language } } . FILTER ( ?x > ?j ) }
[]
language literary work
SYSTEM
7
Q1860 Q8785 Q1321 Q397 Q9056 Q37041 Q652
(c(Q7725634),P407,c(Q34770))
action count
action greater
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_type
action find
entity Q21161942
relation P407
type Q34770
[ANSWER]
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?x ) WHERE { ?b rdf:type ontology:Q34770 . ?s rdf:type ontology:Q7725634 . ?s property:P407 ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:Q21161942 property:P407 ?n . ?n rdf:type ontology:Q34770 } } . FILTER ( ?x > ?j ) }
English Armenian Spanish Latin Czech classical Chinese Italian
7
action count
action greater
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_type
action find
entity Serbian written in Cyrillic
relation language of work or name
type language
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?x ) WHERE { ?b rdf:type ontology:language . ?s rdf:type ontology:literary_work . ?s property:language_of_work_or_name ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:Serbian_written_in_Cyrillic property:language_of_work_or_name ?n . ?n rdf:type ontology:language } } . FILTER ( ?x > ?j ) }
[]