Simple Question (Direct)
Simple Question
Q2190822
P734
Q82799
USER
Who is associated with Joshua John ?
(Q2190822,P734,c(Q82799))
action filter_type
action find
entity Q2190822
relation P734
type Q82799
['Q2190822', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q2190822 property:P734 ?j . ?j rdf:type ontology:Q82799 }
Joshua John
action filter_type
action find
entity Joshua John
relation family name
type name
['Joshua John', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Joshua_John property:family_name ?j . ?j rdf:type ontology:name }
[]
name
Q5281981
SYSTEM
John
Q5281981
(Q2190822,P734,c(Q82799))
action filter_type
action find
entity Q2190822
relation P734
type Q82799
[ANSWER] is associated with Joshua [ANSWER]
['Q2190822', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q2190822 property:P734 ?j . ?j rdf:type ontology:Q82799 }
John
John is associated with Joshua John
John
action filter_type
action find
entity Joshua John
relation family name
type name
['Joshua John', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Joshua_John property:family_name ?j . ?j rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2190822
P21
Q290
USER
What is the sex of that person ?
(Q5281981,P21,c(Q290))
action filter_type
action find
entity Q2190822
relation P21
type Q290
['Q5281981', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q2190822 property:P21 ?j . ?j rdf:type ontology:Q290 }
Joshua John
action filter_type
action find
entity Joshua John
relation gender
type sex
['John', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Joshua_John property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5281981,P21,c(Q290))
action filter_type
action find
entity Q2190822
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q5281981', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q2190822 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Joshua John
relation gender
type sex
['John', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Joshua_John property:gender ?j . ?j rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2190822
P106
Q12737077
USER
Which occupation is the profession of Joshua John ?
(Q2190822,P106,c(Q12737077))
action filter_type
action find
entity Q2190822
relation P106
type Q12737077
['Q2190822', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q2190822 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Joshua John
action filter_type
action find
entity Joshua John
relation occupation
type occupation
['Joshua John', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Joshua_John property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q2190822,P106,c(Q12737077))
action filter_type
action find
entity Q2190822
relation P106
type Q12737077
The [ANSWER] is the profession of Joshua John
['Q2190822', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q2190822 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
association football player
The association football player is the profession of Joshua John
association football player
action filter_type
action find
entity Joshua John
relation occupation
type occupation
['Joshua John', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Joshua_John property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1250861
Q12737077
USER
And how about Karen Carpenter?
(Q1250861,P106,c(Q12737077))
action filter_type
action find
entity Q1250861
relation P106
type Q12737077
['Q1250861', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q1250861 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Karen Carpenter
action filter_type
action find
entity Karen Carpenter
relation occupation
type occupation
['Karen Carpenter', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Karen_Carpenter property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q15981151 Q386854 Q177220
SYSTEM
jazz musician, drummer, singer
Q15981151 Q386854 Q177220
(Q1250861,P106,c(Q12737077))
action filter_type
action find
entity Q1250861
relation P106
type Q12737077
[ANSWERS]
['Q1250861', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q1250861 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
jazz musician drummer singer
jazz musician drummer singer
action filter_type
action find
entity Karen Carpenter
relation occupation
type occupation
['Karen Carpenter', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Karen_Carpenter property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q386854
P39
Q502895
USER
Who was responsible for occupying the position of drummer ?
(c(Q502895),P39,Q386854)
action filter_type
action find_reverse
entity Q386854
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q386854']
SELECT DISTINCT ?d WHERE { ?d property:P39 resource:Q386854 . ?d rdf:type ontology:Q502895 }
drummer
action filter_type
action find_reverse
entity drummer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'drummer']
SELECT DISTINCT ?d WHERE { ?d property:position_held resource:drummer . ?d rdf:type ontology:common_name }
[]
common name
Q3524353
SYSTEM
Thierry Lacroix
Q3524353
(c(Q502895),P39,Q386854)
action filter_type
action find_reverse
entity Q386854
relation P39
type Q502895
[ANSWER] was responsible for occupying the position of drummer
[{'concept': 'Q502895'}, 'P39', 'Q386854']
SELECT DISTINCT ?d WHERE { ?d property:P39 resource:Q386854 . ?d rdf:type ontology:Q502895 }
Thierry Lacroix
Thierry Lacroix was responsible for occupying the position of drummer
Thierry Lacroix
action filter_type
action find_reverse
entity drummer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'drummer']
SELECT DISTINCT ?d WHERE { ?d property:position_held resource:drummer . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3524353
P112
Q2088357
USER
Which musical ensemble was started by that person ?
(c(Q2088357),P112,Q3524353)
action filter_type
action find
entity Q3524353
relation P112
type Q2088357
[{'concept': 'Q2088357'}, 'P112', 'Q3524353']
SELECT DISTINCT ?x WHERE { resource:Q3524353 property:P112 ?x . ?x rdf:type ontology:Q2088357 }
Thierry Lacroix
action filter_type
action find
entity Thierry Lacroix
relation founder
type musical ensemble
[{'concept': 'musical ensemble'}, 'founder', 'Thierry Lacroix']
SELECT DISTINCT ?x WHERE { resource:Thierry_Lacroix property:founder ?x . ?x rdf:type ontology:musical_ensemble }
[]
musical ensemble
Q1235786
SYSTEM
Dolly
Q1235786
(c(Q2088357),P112,Q3524353)
action filter_type
action find
entity Q3524353
relation P112
type Q2088357
[ANSWER] was started by that person
[{'concept': 'Q2088357'}, 'P112', 'Q3524353']
SELECT DISTINCT ?x WHERE { resource:Q3524353 property:P112 ?x . ?x rdf:type ontology:Q2088357 }
Dolly
Dolly was started by that person
Dolly
action filter_type
action find
entity Thierry Lacroix
relation founder
type musical ensemble
[{'concept': 'musical ensemble'}, 'founder', 'Thierry Lacroix']
SELECT DISTINCT ?x WHERE { resource:Thierry_Lacroix property:founder ?x . ?x rdf:type ontology:musical_ensemble }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q3524353 Q487095
P21
Q290
USER
How many sexes are the sex of Thierry Lacroix or Liu Yongqing ?
(Q3524353,P21,c(Q290)) (Q487095,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q3524353
relation P21
type Q290
action filter_type
action find
entity Q487095
relation P21
type Q290
['Q3524353', 'P21', {'concept': 'Q290'}] ['Q487095', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { { ?u rdf:type ontology:Q290 . resource:Q3524353 property:P21 ?u } UNION { resource:Q487095 property:P21 ?u . ?u rdf:type ontology:Q290 } }
Thierry Lacroix Liu Yongqing
action count
action union
action filter_type
action find
entity Thierry Lacroix
relation gender
type sex
action filter_type
action find
entity Liu Yongqing
relation gender
type sex
['Thierry Lacroix', 'gender', {'concept': 'sex'}] ['Liu Yongqing', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { { ?u rdf:type ontology:sex . resource:Thierry_Lacroix property:gender ?u } UNION { resource:Liu_Yongqing property:gender ?u . ?u rdf:type ontology:sex } }
[]
sex
SYSTEM
2
Q6581097 Q6581072
(Q3524353,P21,c(Q290)) (Q487095,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q3524353
relation P21
type Q290
action filter_type
action find
entity Q487095
relation P21
type Q290
[ANSWER]
['Q3524353', 'P21', {'concept': 'Q290'}] ['Q487095', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { { ?u rdf:type ontology:Q290 . resource:Q3524353 property:P21 ?u } UNION { resource:Q487095 property:P21 ?u . ?u rdf:type ontology:Q290 } }
male female
2
action count
action union
action filter_type
action find
entity Thierry Lacroix
relation gender
type sex
action filter_type
action find
entity Liu Yongqing
relation gender
type sex
['Thierry Lacroix', 'gender', {'concept': 'sex'}] ['Liu Yongqing', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { { ?u rdf:type ontology:sex . resource:Thierry_Lacroix property:gender ?u } UNION { resource:Liu_Yongqing property:gender ?u . ?u rdf:type ontology:sex } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q12737077 Q386724 Q340169
USER
Which occupations are expressed in min number of works and medias ?
(c(Q386724)|c(Q340169),P180,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
[[{'concept': 'Q386724'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?r ) { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?k ) WHERE { { ?j property:P180 ?b . ?b rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q340169 } UNION { ?j property:P180 ?b . ?b rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q386724 } } GROUP BY ?b } } . FILTER ( ?f = ?r ) . { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?f ) WHERE { { ?h property:P180 ?y . ?y rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q386724 } UNION { ?h property:P180 ?y . ?h rdf:type ontology:Q340169 . ?y rdf:type ontology:Q12737077 } } GROUP BY ?y } }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type media
[[{'concept': 'work'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?r ) { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?k ) WHERE { { ?j property:depicts ?b . ?b rdf:type ontology:occupation . ?j rdf:type ontology:media } UNION { ?j property:depicts ?b . ?b rdf:type ontology:occupation . ?j rdf:type ontology:work } } GROUP BY ?b } } . FILTER ( ?f = ?r ) . { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?f ) WHERE { { ?h property:depicts ?y . ?y rdf:type ontology:occupation . ?h rdf:type ontology:work } UNION { ?h property:depicts ?y . ?h rdf:type ontology:media . ?y rdf:type ontology:occupation } } GROUP BY ?y } }
[]
occupation work media
Q131512 Q242468 Q182436
SYSTEM
farmer, tailor, librarian
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q1569439 Q131512 Q16735601 Q37226 Q1401609 Q27621374 Q152355 Q1218776 Q1124183 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q1250916 Q4610556 Q81710 Q1259917 Q161944 Q472898 Q7358 Q19968805 Q329737 Q4504549 Q842782 Q47064 Q185196 Q486748 Q328325 Q11900058 Q483501 Q215536 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q955464 Q19723482 Q12902372 Q170790 Q1139055 Q1028181 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q2309900 Q805221 Q5371902 Q17126809 Q12097 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 Q1104153 Q10873124 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q4594605 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q1509714 Q152002 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q207651 Q170779 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q1627992 Q2309784 Q253567 Q3439798 Q2191547 Q838811 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q331432 Q49757 Q160131 Q4990607 Q680928 Q6735310 Q15296811 Q765541 Q2011889 Q49476 Q1281618 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q811122 Q373017 Q2180295 Q1294787 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q386724)|c(Q340169),P180,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
[ANSWERS] are expressed in min number of works and medias
[[{'concept': 'Q386724'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?r ) { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?k ) WHERE { { ?j property:P180 ?b . ?b rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q340169 } UNION { ?j property:P180 ?b . ?b rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q386724 } } GROUP BY ?b } } . FILTER ( ?f = ?r ) . { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?f ) WHERE { { ?h property:P180 ?y . ?y rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q386724 } UNION { ?h property:P180 ?y . ?h rdf:type ontology:Q340169 . ?y rdf:type ontology:Q12737077 } } GROUP BY ?y } }
fiddler acrobat milkmaid worker standard-bearer sheep shearer farmer florist teacher vaquero bear hunter cobbler arriero lumberjack sewing executor astronaut cooper house painter organist actor writer valet sex worker woman of letters ventriloquist amateur wrestler king of marksmen geographer Archbishop of Canterbury minister receptionist milkman coachman warrior model shepherd violinist deacon wet nurse clown spinner butcher religious servant detective military personnel midwife pianist stonemason explorer artist merchant civil servant sower abbé architect street musician parson mandolinist flautist mathematician tax collector painter mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic helmsman ballet dancer harpsichordist rescuer king 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 canon chess player discus thrower bassoonist mufti cowboy rabbi mime artist scientist harpist blacksmith magistrate tailor cardinal housekeeper theologian courier monarch porter pastor courtier judge abbot matador goldsmith waterseller pretender astronomer surgeon domestic worker cook executioner Kassandra 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 peasant woodcutter lacemaker Snake charming carpenter school teacher officer fisherman poet baker knife grinder guard Maid of honour draughtsperson kazasker madam archbishop sculptor boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric construction worker basketry mail carrier artisan bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
Farmer, tailor and librarian are expressed in min number of works and medias
farmer tailor librarian
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type media
[[{'concept': 'work'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?r ) { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?k ) WHERE { { ?j property:depicts ?b . ?b rdf:type ontology:occupation . ?j rdf:type ontology:media } UNION { ?j property:depicts ?b . ?b rdf:type ontology:occupation . ?j rdf:type ontology:work } } GROUP BY ?b } } . FILTER ( ?f = ?r ) . { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?f ) WHERE { { ?h property:depicts ?y . ?y rdf:type ontology:occupation . ?h rdf:type ontology:work } UNION { ?h property:depicts ?y . ?h rdf:type ontology:media . ?y rdf:type ontology:occupation } } GROUP BY ?y } }
[]