Simple Question (Direct)
Simple Question
Q4532576
P161
Q502895
USER
Which people were casted in Ernest Goes to Jail ?
(Q4532576,P161,c(Q502895))
action filter_type
action find
entity Q4532576
relation P161
type Q502895
['Q4532576', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q4532576 property:P161 ?c . ?c rdf:type ontology:Q502895 }
Ernest Goes to Jail
action filter_type
action find
entity Ernest Goes to Jail
relation cast member
type common name
['Ernest Goes to Jail', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Ernest_Goes_to_Jail property:cast_member ?c . ?c rdf:type ontology:common_name }
[]
common name
Q276181 Q436503
SYSTEM
Jim Varney, Gailard Sartain
Q276181 Q436503
(Q4532576,P161,c(Q502895))
action filter_type
action find
entity Q4532576
relation P161
type Q502895
[ANSWERS] were casted in Ernest Goes to Jail
['Q4532576', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q4532576 property:P161 ?c . ?c rdf:type ontology:Q502895 }
Jim Varney Gailard Sartain
Jim Varney and Gailard Sartain were casted in Ernest Goes to Jail
Jim Varney Gailard Sartain
action filter_type
action find
entity Ernest Goes to Jail
relation cast member
type common name
['Ernest Goes to Jail', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Ernest_Goes_to_Jail property:cast_member ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4532576
P136
Q1792379
USER
What can be considered as category for Ernest Goes to Jail ?
(Q4532576,P136,c(Q1792379))
action filter_type
action find
entity Q4532576
relation P136
type Q1792379
['Q4532576', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q1792379 . resource:Q4532576 property:P136 ?h }
Ernest Goes to Jail
action filter_type
action find
entity Ernest Goes to Jail
relation genre
type art genre
['Ernest Goes to Jail', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:art_genre . resource:Ernest_Goes_to_Jail property:genre ?h }
[]
art genre
Q2143665 Q157443
SYSTEM
children's film, comedy film
Q2143665 Q157443
(Q4532576,P136,c(Q1792379))
action filter_type
action find
entity Q4532576
relation P136
type Q1792379
[ANSWERS] can be considered as category for Ernest Goes to Jail
['Q4532576', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q1792379 . resource:Q4532576 property:P136 ?h }
children's film comedy film
Children's film and comedy film can be considered as category for Ernest Goes to Jail
children's film comedy film
action filter_type
action find
entity Ernest Goes to Jail
relation genre
type art genre
['Ernest Goes to Jail', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:art_genre . resource:Ernest_Goes_to_Jail property:genre ?h }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q668484
Q1792379
USER
And what about Looker?
(Q668484,P136,c(Q1792379))
action filter_type
action find
entity Q668484
relation P136
type Q1792379
['Q668484', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?k WHERE { resource:Q668484 property:P136 ?k . ?k rdf:type ontology:Q1792379 }
Looker
action filter_type
action find
entity Looker
relation genre
type art genre
['Looker', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?k WHERE { resource:Looker property:genre ?k . ?k rdf:type ontology:art_genre }
[]
art genre
Q471839
SYSTEM
science fiction film
Q471839
(Q668484,P136,c(Q1792379))
action filter_type
action find
entity Q668484
relation P136
type Q1792379
[ANSWER]
['Q668484', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?k WHERE { resource:Q668484 property:P136 ?k . ?k rdf:type ontology:Q1792379 }
science fiction film
science fiction film
action filter_type
action find
entity Looker
relation genre
type art genre
['Looker', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?k WHERE { resource:Looker property:genre ?k . ?k rdf:type ontology:art_genre }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4354046 Q436503
P106
Q12737077
USER
Which occupations are the professions of Gailard Sartain or Markus Hännikäinen ?
OR((Q436503,P106,c(Q12737077)), (Q4354046,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q436503
relation P106
action find
entity Q4354046
relation P106
type Q12737077
{'OR': [['Q436503', 'P106', {'concept': 'Q12737077'}], ['Q4354046', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q436503 property:P106 ?s } UNION { resource:Q4354046 property:P106 ?s } } . ?s rdf:type ontology:Q12737077 }
Markus Hännikäinen Gailard Sartain
action filter_type
action union
action find
entity Gailard Sartain
relation occupation
action find
entity Markus Hännikäinen
relation occupation
type occupation
{'OR': [['Gailard Sartain', 'occupation', {'concept': 'occupation'}], ['Markus Hännikäinen', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Gailard_Sartain property:occupation ?s } UNION { resource:Markus_Hännikäinen property:occupation ?s } } . ?s rdf:type ontology:occupation }
[]
occupation
Q644687 Q11774891 Q33999 Q36180
SYSTEM
illustrator, ice hockey player, actor, writer
Q644687 Q11774891 Q33999 Q36180
OR((Q436503,P106,c(Q12737077)), (Q4354046,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q436503
relation P106
action find
entity Q4354046
relation P106
type Q12737077
The [ANSWERS] are the professions of Gailard Sartain or Markus Hännikäinen
{'OR': [['Q436503', 'P106', {'concept': 'Q12737077'}], ['Q4354046', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q436503 property:P106 ?s } UNION { resource:Q4354046 property:P106 ?s } } . ?s rdf:type ontology:Q12737077 }
illustrator ice hockey player actor writer
The illustrator, ice hockey player, actor and writer are the professions of Gailard Sartain or Markus Hännikäinen
illustrator ice hockey player actor writer
action filter_type
action union
action find
entity Gailard Sartain
relation occupation
action find
entity Markus Hännikäinen
relation occupation
type occupation
{'OR': [['Gailard Sartain', 'occupation', {'concept': 'occupation'}], ['Markus Hännikäinen', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Gailard_Sartain property:occupation ?s } UNION { resource:Markus_Hännikäinen property:occupation ?s } } . ?s rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q11774891
P101
Q502895
USER
Which people work in the domain of that occupation ?
(c(Q502895),P101,Q11774891)
action filter_type
action find_reverse
entity Q11774891
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q11774891']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P101 resource:Q11774891 }
ice hockey player
action filter_type
action find_reverse
entity ice hockey player
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'ice hockey player']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:field_of_work resource:ice_hockey_player }
[]
common name
Clarification for simple ques.
Q36180
SYSTEM
Did you mean writer ?
Q644687 Q11774891 Q33999 Q36180
(c(Q502895),P101,Q644687) (c(Q502895),P101,Q11774891) (c(Q502895),P101,Q33999) (c(Q502895),P101,Q36180)
[ANSWER]
[{'concept': 'Q502895'}, 'P101', 'Q644687'] [{'concept': 'Q502895'}, 'P101', 'Q11774891'] [{'concept': 'Q502895'}, 'P101', 'Q33999'] [{'concept': 'Q502895'}, 'P101', 'Q36180']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P101 resource:Q11774891 }
illustrator ice hockey player actor writer
Did you mean writer ?
writer
[{'concept': 'common name'}, 'field of work', 'illustrator'] [{'concept': 'common name'}, 'field of work', 'ice hockey player'] [{'concept': 'common name'}, 'field of work', 'actor'] [{'concept': 'common name'}, 'field of work', 'writer']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:field_of_work resource:ice_hockey_player }
[]
Simple Question (Coreferenced)
USER
No, I meant ice hockey player. Could you tell me the answer for that?
(c(Q502895),P101,Q11774891)
Q11774891
[{'concept': 'Q502895'}, 'P101', 'Q11774891']
[{'concept': 'common name'}, 'field of work', 'ice hockey player']
[]
Q2747010 Q3638293 Q6378830
SYSTEM
Marty Walsh, Benny Grant, Ryan Hamilton
Q2747010 Q3638293 Q6378830
(c(Q502895),P101,Q11774891)
action filter_type
action find_reverse
entity Q11774891
relation P101
type Q502895
[ANSWERS] work in the domain of that occupation
[{'concept': 'Q502895'}, 'P101', 'Q11774891']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P101 resource:Q11774891 }
Marty Walsh Benny Grant Ryan Hamilton
Marty Walsh, Benny Grant and Ryan Hamilton work in the domain of that occupation
Marty Walsh Benny Grant Ryan Hamilton
action filter_type
action find_reverse
entity ice hockey player
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'ice hockey player']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:field_of_work resource:ice_hockey_player }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q3190021
P725
Q502895 Q11424
USER
How many films had greater number of people as the dubbing artist than Jungledyret Hugo - den store filmhelt ?
(c(Q11424),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q11424
type Q502895
action count
action filter_type
action find
entity Q3190021
relation P725
type Q11424
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?w ) WHERE { ?q property:P725 ?k . ?q rdf:type ontology:Q11424 . ?k rdf:type ontology:Q502895 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { resource:Q3190021 property:P725 ?m . ?m rdf:type ontology:Q11424 } } . FILTER ( ?w > ?x ) }
Jungledyret Hugo - den store filmhelt
action count
action greater
action find_tuple_counts
relation voice actor
type film
type common name
action count
action filter_type
action find
entity Jungledyret Hugo - den store filmhelt
relation voice actor
type film
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?w ) WHERE { ?q property:voice_actor ?k . ?q rdf:type ontology:film . ?k rdf:type ontology:common_name } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { resource:Jungledyret_Hugo_-_den_store_filmhelt property:voice_actor ?m . ?m rdf:type ontology:film } } . FILTER ( ?w > ?x ) }
[]
common name film
SYSTEM
68
Q378913 Q4499813 Q191753 Q6929072 Q785294 Q6296387 Q204662 Q521082 Q1764174 Q752301 Q270470 Q334132 Q449917 Q4341553 Q1491010 Q215518 Q156401 Q1160649 Q134430 Q215617 Q811980 Q254671 Q179673 Q216929 Q853718 Q374431 Q12084660 Q165512 Q578595 Q933887 Q329316 Q44817 Q223359 Q213787 Q611739 Q980041 Q869741 Q3588859 Q249967 Q19090 Q4189838 Q184701 Q2059996 Q190135 Q736731 Q318428 Q465275 Q218894 Q15270775 Q172284 Q202371 Q40302 Q189875 Q43051 Q1494230 Q917278 Q1406374 Q2068444 Q498434 Q199839 Q36479 Q1634740 Q39722 Q40895 Q1102410 Q271189 Q3226633 Q240852
(c(Q11424),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q11424
type Q502895
action count
action filter_type
action find
entity Q3190021
relation P725
type Q11424
[ANSWER]
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?w ) WHERE { ?q property:P725 ?k . ?q rdf:type ontology:Q11424 . ?k rdf:type ontology:Q502895 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { resource:Q3190021 property:P725 ?m . ?m rdf:type ontology:Q11424 } } . FILTER ( ?w > ?x ) }
The Lord of the Rings Home Cinderella Mr. Peabody & Sherman Captain of the Forest Rio 2 The Sword in the Stone Szaffi Quest for Camelot Flushed Away Peter Pan The Great Mouse Detective The Chipmunk Adventure Pinocchio Tintin and the Lake of Sharks Aladdin Chicken Run Mattie the Goose-boy Snow White and the Seven Dwarfs Sleeping Beauty The Adventures of Lolo the Penguin Coonskin Beauty and the Beast Oliver & Company Fun and Fancy Free The Tigger Movie The Princess and the Goblin One Hundred and One Dalmatians Paprika Tintin and the Temple of the Sun The Black Cauldron The Little Fox Rio The Hunchback of Notre Dame The Ballad of the Daltons The Adventures of Tintin Melody Time Emilie Jolie Hotel Transylvania Robin Hood Starchaser: The Legend of Orin The Aristocats My Little Pony: The Movie The Little Mermaid The Three Caballeros Wallace & Gromit: The Curse of the Were-Rabbit Fantastic Mr. Fox Pocahontas Hotel Transylvania 2 Lady and the Tramp The Rescuers Down Under The Fox and the Hound Alice in Wonderland Bambi Garfield Gets Real Tokyo Godfathers Piglet's Big Movie Felix the Cat: The Movie The Many Adventures of Winnie the Pooh The Jungle Book The Lion King Jungledyret Hugo The Rescuers Dumbo Johnny Corncob Hercules Renart the Fox FernGully: The Last Rainforest
68
action count
action greater
action find_tuple_counts
relation voice actor
type film
type common name
action count
action filter_type
action find
entity Jungledyret Hugo - den store filmhelt
relation voice actor
type film
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?w ) WHERE { ?q property:voice_actor ?k . ?q rdf:type ontology:film . ?k rdf:type ontology:common_name } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { resource:Jungledyret_Hugo_-_den_store_filmhelt property:voice_actor ?m . ?m rdf:type ontology:film } } . FILTER ( ?w > ?x ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q134430
P725
Q502895 Q11424
USER
And what about Snow White and the Seven Dwarfs?
(c(Q11424),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q11424
type Q502895
action count
action filter_type
action find
entity Q134430
relation P725
type Q11424
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?c ) WHERE { ?x property:P725 ?z . ?x rdf:type ontology:Q11424 . ?z rdf:type ontology:Q502895 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Q134430 property:P725 ?b . ?b rdf:type ontology:Q11424 } } . FILTER ( ?c > ?f ) }
Snow White and the Seven Dwarfs
action count
action greater
action find_tuple_counts
relation voice actor
type film
type common name
action count
action filter_type
action find
entity Snow White and the Seven Dwarfs
relation voice actor
type film
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?c ) WHERE { ?x property:voice_actor ?z . ?x rdf:type ontology:film . ?z rdf:type ontology:common_name } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Snow_White_and_the_Seven_Dwarfs property:voice_actor ?b . ?b rdf:type ontology:film } } . FILTER ( ?c > ?f ) }
[]
common name film
SYSTEM
35
Q191753 Q6929072 Q785294 Q204662 Q521082 Q1764174 Q270470 Q334132 Q215617 Q179673 Q216929 Q165512 Q578595 Q933887 Q329316 Q213787 Q980041 Q19090 Q184701 Q2059996 Q190135 Q465275 Q218894 Q15270775 Q202371 Q40302 Q189875 Q43051 Q917278 Q498434 Q199839 Q36479 Q39722 Q40895 Q271189
(c(Q11424),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q11424
type Q502895
action count
action filter_type
action find
entity Q134430
relation P725
type Q11424
[ANSWER]
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?c ) WHERE { ?x property:P725 ?z . ?x rdf:type ontology:Q11424 . ?z rdf:type ontology:Q502895 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Q134430 property:P725 ?b . ?b rdf:type ontology:Q11424 } } . FILTER ( ?c > ?f ) }
Cinderella Mr. Peabody & Sherman Captain of the Forest The Sword in the Stone Szaffi Quest for Camelot Peter Pan The Great Mouse Detective Sleeping Beauty Beauty and the Beast Oliver & Company One Hundred and One Dalmatians Paprika Tintin and the Temple of the Sun The Black Cauldron The Hunchback of Notre Dame The Adventures of Tintin Robin Hood The Aristocats My Little Pony: The Movie The Little Mermaid Fantastic Mr. Fox Pocahontas Hotel Transylvania 2 The Rescuers Down Under The Fox and the Hound Alice in Wonderland Bambi Tokyo Godfathers The Many Adventures of Winnie the Pooh The Jungle Book The Lion King The Rescuers Dumbo Hercules
35
action count
action greater
action find_tuple_counts
relation voice actor
type film
type common name
action count
action filter_type
action find
entity Snow White and the Seven Dwarfs
relation voice actor
type film
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?c ) WHERE { ?x property:voice_actor ?z . ?x rdf:type ontology:film . ?z rdf:type ontology:common_name } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Snow_White_and_the_Seven_Dwarfs property:voice_actor ?b . ?b rdf:type ontology:film } } . FILTER ( ?c > ?f ) }
[]