Simple Question (Direct)
Simple Question
Q1909183
P19
Q515
USER
Where was Matt Frattin born ?
(Q1909183,P19,c(Q515))
action filter_type
action find
entity Q1909183
relation P19
type Q515
['Q1909183', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?n WHERE { resource:Q1909183 property:P19 ?n . ?n rdf:type ontology:Q515 }
Matt Frattin
action filter_type
action find
entity Matt Frattin
relation place of birth
type city
['Matt Frattin', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?n WHERE { resource:Matt_Frattin property:place_of_birth ?n . ?n rdf:type ontology:city }
[]
city
Q2096
SYSTEM
Edmonton
Q2096
(Q1909183,P19,c(Q515))
action filter_type
action find
entity Q1909183
relation P19
type Q515
Matt Frattin was born in [ANSWER]
['Q1909183', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?n WHERE { resource:Q1909183 property:P19 ?n . ?n rdf:type ontology:Q515 }
Edmonton
Matt Frattin was born in Edmonton
Edmonton
action filter_type
action find
entity Matt Frattin
relation place of birth
type city
['Matt Frattin', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?n WHERE { resource:Matt_Frattin property:place_of_birth ?n . ?n rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1909183
P21
Q290
USER
What is the sex of Matt Frattin ?
(Q1909183,P21,c(Q290))
action filter_type
action find
entity Q1909183
relation P21
type Q290
['Q1909183', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q1909183 property:P21 ?n . ?n rdf:type ontology:Q290 }
Matt Frattin
action filter_type
action find
entity Matt Frattin
relation gender
type sex
['Matt Frattin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Matt_Frattin property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1909183,P21,c(Q290))
action filter_type
action find
entity Q1909183
relation P21
type Q290
The sex of Matt Frattin is the [ANSWER]
['Q1909183', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q1909183 property:P21 ?n . ?n rdf:type ontology:Q290 }
male
The sex of Matt Frattin is the male
male
action filter_type
action find
entity Matt Frattin
relation gender
type sex
['Matt Frattin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Matt_Frattin property:gender ?n . ?n rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1694061
Q290
USER
And also tell me about Johann Glandorff?
(Q1694061,P21,c(Q290))
action filter_type
action find
entity Q1694061
relation P21
type Q290
['Q1694061', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q1694061 property:P21 ?a . ?a rdf:type ontology:Q290 }
Johann Glandorff
action filter_type
action find
entity Johann Glandorff
relation gender
type sex
['Johann Glandorff', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Johann_Glandorff property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1694061,P21,c(Q290))
action filter_type
action find
entity Q1694061
relation P21
type Q290
[ANSWER]
['Q1694061', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q1694061 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Johann Glandorff
relation gender
type sex
['Johann Glandorff', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Johann_Glandorff property:gender ?a . ?a rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1694061
P39
Q12737077
USER
Which occupation was a position occupied by Johann Glandorff ?
(Q1694061,P39,c(Q12737077))
action filter_type
action find
entity Q1694061
relation P39
type Q12737077
['Q1694061', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q1694061 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
Johann Glandorff
action filter_type
action find
entity Johann Glandorff
relation position held
type occupation
['Johann Glandorff', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Johann_Glandorff property:position_held ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q30185
SYSTEM
mayor
Q30185
(Q1694061,P39,c(Q12737077))
action filter_type
action find
entity Q1694061
relation P39
type Q12737077
The [ANSWER] was a position occupied by Johann Glandorff
['Q1694061', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q1694061 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
mayor
The mayor was a position occupied by Johann Glandorff
mayor
action filter_type
action find
entity Johann Glandorff
relation position held
type occupation
['Johann Glandorff', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Johann_Glandorff property:position_held ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5542462
Q12737077
USER
And how about George Mihalcheon?
(Q5542462,P39,c(Q12737077))
action filter_type
action find
entity Q5542462
relation P39
type Q12737077
['Q5542462', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q5542462 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
George Mihalcheon
action filter_type
action find
entity George Mihalcheon
relation position held
type occupation
['George Mihalcheon', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:George_Mihalcheon property:position_held ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q15964815
SYSTEM
member of Alberta Legislative Assembly
Q15964815
(Q5542462,P39,c(Q12737077))
action filter_type
action find
entity Q5542462
relation P39
type Q12737077
[ANSWER]
['Q5542462', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q5542462 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
member of Alberta Legislative Assembly
member of Alberta Legislative Assembly
action filter_type
action find
entity George Mihalcheon
relation position held
type occupation
['George Mihalcheon', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:George_Mihalcheon property:position_held ?w . ?w rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q842606
P180
Q12737077 Q838948 Q17638008
USER
Which occupations are depicted in approximately the same number of works of art or game equipment as Roman emperor ?
(c(Q838948)|c(Q17638008),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q842606
relation P180
type Q838948
type Q17638008
[[{'concept': 'Q838948'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) ?r WHERE { { ?r rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q838948 . ?h property:P180 ?r } UNION { ?h rdf:type ontology:Q17638008 . ?r rdf:type ontology:Q12737077 . ?h property:P180 ?r } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { ?c property:P180 resource:Q842606 . { ?c rdf:type ?k . VALUES ( ?k ) { ( ontology:Q838948 ) ( ontology:Q17638008 ) } } } } . FILTER ( ?p = ?o ) }
Roman emperor
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity Roman emperor
relation depicts
type work of art
type game equipment
[[{'concept': 'work of art'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) ?r WHERE { { ?r rdf:type ontology:occupation . ?h rdf:type ontology:work_of_art . ?h property:depicts ?r } UNION { ?h rdf:type ontology:game_equipment . ?r rdf:type ontology:occupation . ?h property:depicts ?r } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { ?c property:depicts resource:Roman_emperor . { ?c rdf:type ?k . VALUES ( ?k ) { ( ontology:work_of_art ) ( ontology:game_equipment ) } } } } . FILTER ( ?p = ?o ) }
[]
occupation work of art game equipment
Q131512 Q186360 Q242468
SYSTEM
farmer, nurse, tailor
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q177220 Q1569439 Q131512 Q16735601 Q37226 Q1401609 Q27621374 Q152355 Q1218776 Q1124183 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q4610556 Q1259917 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q4504549 Q842782 Q185196 Q486748 Q328325 Q11900058 Q483501 Q215536 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q19723482 Q12902372 Q170790 Q1139055 Q1028181 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q733786 Q2309900 Q805221 Q5371902 Q17126809 Q848550 Q386854 Q202648 Q1753370 Q107711 Q12059906 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q855855 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q19546 Q6116659 Q537575 Q20826540 Q715301 Q11338576 Q622630 Q3330547 Q3214532 Q14009165 Q15954519 Q2981922 Q10833314 Q1318187 Q29182 Q326358 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q54128 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q207651 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q1627992 Q2309784 Q253567 Q3439798 Q2191547 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q15296811 Q765541 Q2011889 Q49476 Q1281618 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q811122 Q373017 Q2180295 Q42603 Q1294787 Q1630100 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q838948)|c(Q17638008),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q842606
relation P180
type Q838948
type Q17638008
[ANSWERS] are depicted in approximately the same number of works of art or game equipment as Roman emperor
[[{'concept': 'Q838948'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) ?r WHERE { { ?r rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q838948 . ?h property:P180 ?r } UNION { ?h rdf:type ontology:Q17638008 . ?r rdf:type ontology:Q12737077 . ?h property:P180 ?r } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { ?c property:P180 resource:Q842606 . { ?c rdf:type ?k . VALUES ( ?k ) { ( ontology:Q838948 ) ( ontology:Q17638008 ) } } } } . FILTER ( ?p = ?o ) }
fiddler acrobat milkmaid worker standard-bearer singer sheep shearer farmer florist teacher vaquero bear hunter cobbler arriero lumberjack sewing executor astronaut cooper house painter organist double-bassist actor writer valet sex worker woman of letters ventriloquist amateur wrestler king of marksmen geographer Archbishop of Canterbury minister receptionist milkman coachman model violinist deacon wet nurse sailor clown spinner butcher religious servant detective midwife pianist stonemason explorer artist merchant civil servant sower abbé architect street musician nurse parson mandolinist flautist mathematician tax collector painter mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic monk helmsman ballet dancer harpsichordist rescuer VOC Opperhoofd in Japan drummer referee curate firefighter herder dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja page friar hobo fishmonger recorder player laborer pope priestess gravedigger erudite comics artist boxer odalisque chronicler plowman trapper alchemist American pioneer tennis player scrivener bishop joiner goatherd pedicure Catholic priest courtesan member of parliament bartender clogmaker peddler reaper condottiero canon chess player discus thrower bassoonist mufti cowboy rabbi mime artist scientist harpist blacksmith mahout magistrate domestic worker tailor cardinal housekeeper theologian courier monarch salt pan worker porter pastor courtier judge abbot matador goldsmith waterseller pretender astronomer surgeon domestic worker cook executioner Kassandra embroiderer high-ranking civil servant in France exotic dancer lyricist plasterer gardener composer miller tightrope walker maid lady's maid sport cyclist apprentice King of France picador woodcutter lacemaker Snake charming carpenter school teacher officer baker knife grinder police officer guard Maid of honour draughtsperson kazasker madam archbishop sculptor boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric construction worker basketry mail carrier priest artisan art model bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
Farmer, nurse and tailor are depicted in approximately the same number of works of art or game equipment as Roman emperor
farmer nurse tailor
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity Roman emperor
relation depicts
type work of art
type game equipment
[[{'concept': 'work of art'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) ?r WHERE { { ?r rdf:type ontology:occupation . ?h rdf:type ontology:work_of_art . ?h property:depicts ?r } UNION { ?h rdf:type ontology:game_equipment . ?r rdf:type ontology:occupation . ?h property:depicts ?r } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { ?c property:depicts resource:Roman_emperor . { ?c rdf:type ?k . VALUES ( ?k ) { ( ontology:work_of_art ) ( ontology:game_equipment ) } } } } . FILTER ( ?p = ?o ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q82955 Q2096
P19 P106
Q502895
USER
Which people have place of birth as Edmonton and have politician as his/her means of employment ?
AND((c(Q502895),P19,Q2096), (c(Q502895),P106,Q82955))
action filter_type
action intersection
action find_reverse
entity Q2096
relation P19
action find_reverse
entity Q82955
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q2096'], [{'concept': 'Q502895'}, 'P106', 'Q82955']]}
SELECT DISTINCT ?e WHERE { ?e property:P19 resource:Q2096 . ?e property:P106 resource:Q82955 . ?e rdf:type ontology:Q502895 }
politician Edmonton
action filter_type
action intersection
action find_reverse
entity Edmonton
relation place of birth
action find_reverse
entity politician
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Edmonton'], [{'concept': 'common name'}, 'occupation', 'politician']]}
SELECT DISTINCT ?e WHERE { ?e property:place_of_birth resource:Edmonton . ?e property:occupation resource:politician . ?e rdf:type ontology:common_name }
[]
common name
Q5257284 Q19862155 Q19876234 Q7361118 Q5300452 Q7051604 Q5334855 Q345859 Q6312321 Q7279347
SYSTEM
Some of them are Denis Herard, Richard Feehan, Leela Aheer, Rollie Cook, Doug Elniski, Norm Weiss, Ed Gibbons, Dennis Fentie, June Jaronitzky, Rachel Notley
Q4932364 Q959778 Q1927699 Q6788847 Q5334855 Q4741749 Q19880428 Q7823613 Q3241331 Q7051604 Q6369793 Q5055849 Q4710646 Q6153437 Q3161357 Q3441372 Q4977992 Q19862157 Q7339944 Q5300452 Q3051221 Q5040617 Q4963688 Q6793504 Q19862162 Q19862164 Q7597975 Q4731025 Q19861478 Q1710886 Q3553399 Q4910910 Q6312321 Q5044352 Q5258146 Q8017131 Q7982723 Q7292225 Q345859 Q6962830 Q19880417 Q5394547 Q19880928 Q7279347 Q16107211 Q5233037 Q16729791 Q3368534 Q19876234 Q4725900 Q5257284 Q19862159 Q3289110 Q7361118 Q3035763 Q3304851 Q7151302 Q19862155 Q6154342 Q6248053 Q3178781 Q5485519 Q7340428 Q5262909 Q6501505 Q4800320 Q5552754 Q5415485
AND((c(Q502895),P19,Q2096), (c(Q502895),P106,Q82955))
action filter_type
action intersection
action find_reverse
entity Q2096
relation P19
action find_reverse
entity Q82955
relation P106
type Q502895
[ANSWERS] have place of birth as Edmonton and have politician as his/her means of employment
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q2096'], [{'concept': 'Q502895'}, 'P106', 'Q82955']]}
SELECT DISTINCT ?e WHERE { ?e property:P19 resource:Q2096 . ?e property:P106 resource:Q82955 . ?e rdf:type ontology:Q502895 }
Bob Elliott Preston Manning Mike Harcourt Matt Jeneroux Ed Gibbons Ambrose A. Holowach Barb Miller Tony Vandermeer Linda Duncan Norm Weiss Karen Kryczka Cec Purves Albert Klapstein Janet Koper James Rajotte Ron Cannan Bruce McLaughlin Kathleen Ganley Rob Anderson Doug Elniski Elizabeth Hanson Carl Paproski Brian Evans Maurice Tougas Trevor Horne Debbie Jabbour Stan Woloshyn Allan Warnke Thomas Dang Judd Buchanan Val Meredith Bill Smith June Jaronitzky Carol Haley Dennis Anderson William Purdy Wendy McMahon Randy Hawes Dennis Fentie Nancy MacBeth Karen McPherson Ernie Jamison David Shepherd Rachel Notley Jane Batty David Dorward Jim Heron Pat Duncan Leela Aheer Alice Hanson Denis Herard Christina Gray Marcel Lambert Rollie Cook Don Davies Mel Hurtig Paul Hinman Richard Feehan Janice Sarich John McLaughlin Jim Dinning Frank Bruseker Rob Norris Deron Bilous Laurie Blakeman Arthur Soetaert Gerry Gibeault Evan Maurice Wolfe
Denis Herard, Richard Feehan, Leela Aheer, Rollie Cook, Doug Elniski, Norm Weiss, Ed Gibbons, Dennis Fentie, June Jaronitzky and Rachel Notley have place of birth as Edmonton and have politician as his/her means of employment
Denis Herard Richard Feehan Leela Aheer Rollie Cook Doug Elniski Norm Weiss Ed Gibbons Dennis Fentie June Jaronitzky Rachel Notley
action filter_type
action intersection
action find_reverse
entity Edmonton
relation place of birth
action find_reverse
entity politician
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Edmonton'], [{'concept': 'common name'}, 'occupation', 'politician']]}
SELECT DISTINCT ?e WHERE { ?e property:place_of_birth resource:Edmonton . ?e property:occupation resource:politician . ?e rdf:type ontology:common_name }
[]