Simple Question (Direct)
Simple Question
Q858621
P21
Q290
USER
Which sex does Carlos Torres possess ?
(Q858621,P21,c(Q290))
action filter_type
action find
entity Q858621
relation P21
type Q290
['Q858621', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q858621 property:P21 ?n . ?n rdf:type ontology:Q290 }
Carlos Torres
action filter_type
action find
entity Carlos Torres
relation gender
type sex
['Carlos Torres', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Carlos_Torres property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q858621,P21,c(Q290))
action filter_type
action find
entity Q858621
relation P21
type Q290
Carlos Torres possesses a [ANSWER]
['Q858621', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q858621 property:P21 ?n . ?n rdf:type ontology:Q290 }
male
Carlos Torres possesses a male
male
action filter_type
action find
entity Carlos Torres
relation gender
type sex
['Carlos Torres', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Carlos_Torres property:gender ?n . ?n rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q858621
P106
Q12737077
USER
What do Carlos Torres do for a living ?
(Q858621,P106,c(Q12737077))
action filter_type
action find
entity Q858621
relation P106
type Q12737077
['Q858621', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q858621 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Carlos Torres
action filter_type
action find
entity Carlos Torres
relation occupation
type occupation
['Carlos Torres', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Carlos_Torres property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q859528 Q628099 Q937857
SYSTEM
association football referee, association football manager, association football player
Q859528 Q628099 Q937857
(Q858621,P106,c(Q12737077))
action filter_type
action find
entity Q858621
relation P106
type Q12737077
[ANSWERS] Carlos Torres do for a living
['Q858621', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q858621 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
association football referee association football manager association football player
Association football referee, association football manager and association football player Carlos Torres do for a living
association football referee association football manager association football player
action filter_type
action find
entity Carlos Torres
relation occupation
type occupation
['Carlos Torres', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Carlos_Torres property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q18402630
Q12737077
USER
And also tell me about Hans Primas?
(Q18402630,P106,c(Q12737077))
action filter_type
action find
entity Q18402630
relation P106
type Q12737077
['Q18402630', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q18402630 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Hans Primas
action filter_type
action find
entity Hans Primas
relation occupation
type occupation
['Hans Primas', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Hans_Primas property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q1622272 Q593644
SYSTEM
university teacher, chemist
Q1622272 Q593644
(Q18402630,P106,c(Q12737077))
action filter_type
action find
entity Q18402630
relation P106
type Q12737077
[ANSWERS]
['Q18402630', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q18402630 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
university teacher chemist
university teacher chemist
action filter_type
action find
entity Hans Primas
relation occupation
type occupation
['Hans Primas', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Hans_Primas property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1622272
P425
Q2385804
USER
Who is associated with the field of occupation that one ?
(Q1622272,P425,c(Q2385804))
action filter_type
action find
entity Q1622272
relation P425
type Q2385804
['Q1622272', 'P425', {'concept': 'Q2385804'}]
SELECT DISTINCT ?s WHERE { resource:Q1622272 property:P425 ?s . ?s rdf:type ontology:Q2385804 }
university teacher
action filter_type
action find
entity university teacher
relation field of this occupation
type educational institution
['university teacher', 'field of this occupation', {'concept': 'educational institution'}]
SELECT DISTINCT ?s WHERE { resource:university_teacher property:field_of_this_occupation ?s . ?s rdf:type ontology:educational_institution }
[]
educational institution
Clarification for simple ques.
Q1622272
SYSTEM
Did you mean university teacher ?
Q1622272 Q593644
(Q1622272,P425,c(Q2385804)) (Q593644,P425,c(Q2385804))
[ANSWER]
['Q1622272', 'P425', {'concept': 'Q2385804'}] ['Q593644', 'P425', {'concept': 'Q2385804'}]
SELECT DISTINCT ?s WHERE { resource:Q1622272 property:P425 ?s . ?s rdf:type ontology:Q2385804 }
university teacher chemist
Did you mean university teacher ?
university teacher
['university teacher', 'field of this occupation', {'concept': 'educational institution'}] ['chemist', 'field of this occupation', {'concept': 'educational institution'}]
SELECT DISTINCT ?s WHERE { resource:university_teacher property:field_of_this_occupation ?s . ?s rdf:type ontology:educational_institution }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1622272,P425,c(Q2385804))
['Q1622272', 'P425', {'concept': 'Q2385804'}]
['university teacher', 'field of this occupation', {'concept': 'educational institution'}]
[]
Q3918
SYSTEM
university
Q3918
(Q1622272,P425,c(Q2385804))
action filter_type
action find
entity Q1622272
relation P425
type Q2385804
Is [ANSWER] is associated with the field of occupation that one
['Q1622272', 'P425', {'concept': 'Q2385804'}]
SELECT DISTINCT ?s WHERE { resource:Q1622272 property:P425 ?s . ?s rdf:type ontology:Q2385804 }
university
Is university is associated with the field of occupation that one
university
action filter_type
action find
entity university teacher
relation field of this occupation
type educational institution
['university teacher', 'field of this occupation', {'concept': 'educational institution'}]
SELECT DISTINCT ?s WHERE { resource:university_teacher property:field_of_this_occupation ?s . ?s rdf:type ontology:educational_institution }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q937857 Q1622272
P106
Q502895
USER
Which people have the profession of university teacher and association football player ?
AND((c(Q502895),P106,Q1622272), (c(Q502895),P106,Q937857))
action filter_type
action intersection
action find_reverse
entity Q1622272
relation P106
action find_reverse
entity Q937857
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q1622272'], [{'concept': 'Q502895'}, 'P106', 'Q937857']]}
SELECT DISTINCT ?c WHERE { ?c property:P106 resource:Q1622272 . ?c property:P106 resource:Q937857 . ?c rdf:type ontology:Q502895 }
association football player university teacher
action filter_type
action intersection
action find_reverse
entity university teacher
relation occupation
action find_reverse
entity association football player
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'university teacher'], [{'concept': 'common name'}, 'occupation', 'association football player']]}
SELECT DISTINCT ?c WHERE { ?c property:occupation resource:university_teacher . ?c property:occupation resource:association_football_player . ?c rdf:type ontology:common_name }
[]
common name
Q343307 Q1582700 Q1746878 Q1322994 Q1560397 Q12813764 Q320608 Q464040 Q354250 Q1448075
SYSTEM
Some of them are Branko Elsner, Hans Studener, Michael Steinbrecher, Kenzō Nakajima, Günter Czichowski, István Berkes, Hans Reese, Georg Keßler, Hubert Parry, Franz Loogen
Q2211065 Q12813764 Q694115 Q1582700 Q15635015 Q310009 Q7085 Q157820 Q1746878 Q1466195 Q1560397 Q463307 Q1448075 Q3024711 Q464040 Q1629879 Q20181240 Q320608 Q2645340 Q1560500 Q2574243 Q1322994 Q343307 Q2633169 Q354250 Q4019952 Q1554894
AND((c(Q502895),P106,Q1622272), (c(Q502895),P106,Q937857))
action filter_type
action intersection
action find_reverse
entity Q1622272
relation P106
action find_reverse
entity Q937857
relation P106
type Q502895
[ANSWERS] have the profession of university teacher and association football player
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q1622272'], [{'concept': 'Q502895'}, 'P106', 'Q937857']]}
SELECT DISTINCT ?c WHERE { ?c property:P106 resource:Q1622272 . ?c property:P106 resource:Q937857 . ?c rdf:type ontology:Q502895 }
Sadatoshi Kumagai István Berkes Walter Schleger Hans Studener José Cabrera Bazán Harald Bohr Niels Bohr Sepp Herberger Michael Steinbrecher Arthur Battishill Yolland Günter Czichowski Bjarni Jónsson Franz Loogen Egied I. Strubbe Georg Keßler Horst Saß Martin Zöller Hans Reese Alfred Kunze Gunter Germann Wilhelm Mons Kenzō Nakajima Branko Elsner Kozo Tashima Hubert Parry Olav Christopher Jenssen Gunter Iberer
Branko Elsner, Hans Studener, Michael Steinbrecher, Kenzō Nakajima, Günter Czichowski, István Berkes, Hans Reese, Georg Keßler, Hubert Parry and Franz Loogen have the profession of university teacher and association football player
Branko Elsner Hans Studener Michael Steinbrecher Kenzō Nakajima Günter Czichowski István Berkes Hans Reese Georg Keßler Hubert Parry Franz Loogen
action filter_type
action intersection
action find_reverse
entity university teacher
relation occupation
action find_reverse
entity association football player
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'university teacher'], [{'concept': 'common name'}, 'occupation', 'association football player']]}
SELECT DISTINCT ?c WHERE { ?c property:occupation resource:university_teacher . ?c property:occupation resource:association_football_player . ?c rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q477365
P725
Q502895 Q838948
USER
How many works of art had their voice dubbing done by less number of people than 101 Dalmatians II: Patch's London Adventure ?
(c(Q838948),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q838948
type Q502895
action count
action filter_type
action find
entity Q477365
relation P725
type Q502895
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?y ) WHERE { ?n property:P725 ?t . ?t rdf:type ontology:Q502895 . ?n rdf:type ontology:Q838948 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { resource:Q477365 property:P725 ?w . ?w rdf:type ontology:Q502895 } } . FILTER ( ?y < ?a ) }
101 Dalmatians II: Patch's London Adventure
action count
action less
action find_tuple_counts
relation voice actor
type work of art
type common name
action count
action filter_type
action find
entity 101 Dalmatians II: Patch's London Adventure
relation voice actor
type common name
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?y ) WHERE { ?n property:voice_actor ?t . ?t rdf:type ontology:common_name . ?n rdf:type ontology:work_of_art } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { resource:101_Dalmatians_II:_Patch's_London_Adventure property:voice_actor ?w . ?w rdf:type ontology:common_name } } . FILTER ( ?y < ?a ) }
[]
common name work of art
SYSTEM
91
Q4346544 Q13091172 Q13393950 Q127367 Q16207076 Q3458494 Q23838455 Q8024145 Q15139235 Q21428001 Q890656 Q834799 Q82579 Q568928 Q3139297 Q212792 Q190145 Q909318 Q6675708 Q17485699 Q5901134 Q19948770 Q1325217 Q286868 Q1315185 Q1583966 Q390341 Q25218391 Q7737199 Q477965 Q5640689 Q777739 Q4942936 Q1572709 Q3282491 Q640695 Q14540226 Q16782 Q18407657 Q868048 Q615813 Q4367569 Q180098 Q4158396 Q1100231 Q4503243 Q1368693 Q19776571 Q1185099 Q4646903 Q18786473 Q16857406 Q4305149 Q176198 Q25167044 Q622742 Q567884 Q1196712 Q1058469 Q19776435 Q15627005 Q204416 Q5237953 Q1309592 Q890665 Q207659 Q1519753 Q641315 Q729809 Q888131 Q23034444 Q1702819 Q4468674 Q318975 Q2165639 Q4204793 Q1201022 Q587921 Q1810461 Q387674 Q5694508 Q741883 Q1193324 Q18167809 Q7767682 Q18200409 Q18857408 Q16998034 Q179411 Q246418 Q16248866
(c(Q838948),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q838948
type Q502895
action count
action filter_type
action find
entity Q477365
relation P725
type Q502895
[ANSWER]
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?y ) WHERE { ?n property:P725 ?t . ?t rdf:type ontology:Q502895 . ?n rdf:type ontology:Q838948 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { resource:Q477365 property:P725 ?w . ?w rdf:type ontology:Q502895 } } . FILTER ( ?y < ?a ) }
Passport Big Hero 6 My Little Pony: Equestria Girls The Lord of the Rings: The Fellowship of the Ring Battle Beyond the Sun A Tree of Palme Planetarian: Hoshi no Hito Windfall Nobunaga the Fool Riley's First Date? Pokémon Heroes Pokémon: The First Movie: Mewtwo Strikes Back Pokémon 4Ever Garfield: The Movie Hold the Lion, Please Bolt Spider-Man 2 Keroro Gunso the Super Movie 3: Keroro vs. Keroro Great Sky Duel Looney Tunes Super Stars' Foghorn Leghorn & Friends: Barnyard Bigmouth Alice Through the Looking Glass Ant-Man From Caligari to Hitler: German Cinema in the Age of the Masses Flubber Noah Steamboy Underdog Beverly Hills Chihuahua Exile The Good Dinosaur Persepolis Hal Ivan Vasilievich: Back to the Future Book Girl Pretty Cure All Stars Trigun: Badlands Rumble Metropolis Celestial Wives of the Meadow Mari Buried Captain America: Civil War Pokémon: The Movie 2000: The Power of One Pokémon the Movie: Black—Victini and Reshiram and White—Victini and Zekrom The Witches Cave Ben-Hur Radio Day Hayate the Combat Butler! Heaven Is a Place on Earth The Tsar's Bride GeGeGe no Kitarō N - The Madness of Reason Star Driver: Kagayaki no Takuto A-Haunting We Will Go Pete's Dragon The Jungle Book Mozart and Salieri The Last Unicorn Wreck-It Ralph 2 Where the Wild Things Are Another Detective Conan: The Phantom of Baker Street Ghost in the Shell 2: Innocence Szenario Fair Play Felidae Inazuma Eleven GO vs. Danbōru Senki W Doraemon: Nobita and the Wind Wizard Pokémon 3: The Movie: Spell of the Unown Space Jam Mimino Spirit: Stallion of the Cimarron Bodacious Space Pirates The Wind Rises Ghost in the Shell 2.0 Secret of the Wings To Kill a Dragon Atlantis: The Lost Empire Watership Down History of the Arkanar Massacre Tiger & Bunny Garfield: A Tail of Two Kitties Springtime with Roo Final Fantasy VII: Advent Children Heaven's Lost Property the Movie: The Angeloid of Clockwork Heaven's Lost Property The Disappearance of Haruhi Suzumiya The Prophet The Swing School A Monster Calls Thou-Vou falakros praktor Monkey Kingdom A Very Merry Pooh Year Gulliver's Travels The Book of Life
91
action count
action less
action find_tuple_counts
relation voice actor
type work of art
type common name
action count
action filter_type
action find
entity 101 Dalmatians II: Patch's London Adventure
relation voice actor
type common name
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?y ) WHERE { ?n property:voice_actor ?t . ?t rdf:type ontology:common_name . ?n rdf:type ontology:work_of_art } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { resource:101_Dalmatians_II:_Patch's_London_Adventure property:voice_actor ?w . ?w rdf:type ontology:common_name } } . FILTER ( ?y < ?a ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q7767682
P725
Q502895 Q838948
USER
And what about The Swing School?
(c(Q838948),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q838948
type Q502895
action count
action filter_type
action find
entity Q7767682
relation P725
type Q502895
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?w ) WHERE { ?i rdf:type ontology:Q838948 . ?a rdf:type ontology:Q502895 . ?i property:P725 ?a } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { ?p rdf:type ontology:Q502895 . resource:Q7767682 property:P725 ?p } } . FILTER ( ?w < ?b ) }
The Swing School
action count
action less
action find_tuple_counts
relation voice actor
type work of art
type common name
action count
action filter_type
action find
entity The Swing School
relation voice actor
type common name
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?w ) WHERE { ?i rdf:type ontology:work_of_art . ?a rdf:type ontology:common_name . ?i property:voice_actor ?a } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { ?p rdf:type ontology:common_name . resource:The_Swing_School property:voice_actor ?p } } . FILTER ( ?w < ?b ) }
[]
common name work of art
SYSTEM
5
Q4346544 Q190145 Q4367569 Q4468674 Q4204793
(c(Q838948),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q838948
type Q502895
action count
action filter_type
action find
entity Q7767682
relation P725
type Q502895
[ANSWER]
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?w ) WHERE { ?i rdf:type ontology:Q838948 . ?a rdf:type ontology:Q502895 . ?i property:P725 ?a } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { ?p rdf:type ontology:Q502895 . resource:Q7767682 property:P725 ?p } } . FILTER ( ?w < ?b ) }
Passport Spider-Man 2 The Witches Cave To Kill a Dragon History of the Arkanar Massacre
5
action count
action less
action find_tuple_counts
relation voice actor
type work of art
type common name
action count
action filter_type
action find
entity The Swing School
relation voice actor
type common name
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?w ) WHERE { ?i rdf:type ontology:work_of_art . ?a rdf:type ontology:common_name . ?i property:voice_actor ?a } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { ?p rdf:type ontology:common_name . resource:The_Swing_School property:voice_actor ?p } } . FILTER ( ?w < ?b ) }
[]