Simple Question (Direct)
Simple Question
Q3943104
P21
Q290
USER
What is the sex of Ryan Toolson ?
(Q3943104,P21,c(Q290))
action filter_type
action find
entity Q3943104
relation P21
type Q290
['Q3943104', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q3943104 property:P21 ?e . ?e rdf:type ontology:Q290 }
Ryan Toolson
action filter_type
action find
entity Ryan Toolson
relation gender
type sex
['Ryan Toolson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Ryan_Toolson property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3943104,P21,c(Q290))
action filter_type
action find
entity Q3943104
relation P21
type Q290
The sex of Ryan Toolson is a [ANSWER]
['Q3943104', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q3943104 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
The sex of Ryan Toolson is a male
male
action filter_type
action find
entity Ryan Toolson
relation gender
type sex
['Ryan Toolson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Ryan_Toolson property:gender ?e . ?e rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3943104
P69
Q159334
USER
Which secondary school is Ryan Toolson an alumni of ?
(Q3943104,P69,c(Q159334))
action filter_type
action find
entity Q3943104
relation P69
type Q159334
['Q3943104', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q159334 . resource:Q3943104 property:P69 ?w }
Ryan Toolson
action filter_type
action find
entity Ryan Toolson
relation educated at
type secondary school
['Ryan Toolson', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:secondary_school . resource:Ryan_Toolson property:educated_at ?w }
[]
secondary school
Q5560973
SYSTEM
Gilbert High School
Q5560973
(Q3943104,P69,c(Q159334))
action filter_type
action find
entity Q3943104
relation P69
type Q159334
[ANSWER] is Ryan Toolson an alumni of
['Q3943104', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q159334 . resource:Q3943104 property:P69 ?w }
Gilbert High School
Gilbert High School is Ryan Toolson an alumni of
Gilbert High School
action filter_type
action find
entity Ryan Toolson
relation educated at
type secondary school
['Ryan Toolson', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:secondary_school . resource:Ryan_Toolson property:educated_at ?w }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3943104
P27
Q15617994
USER
Which administrative territory does Ryan Toolson belong to ?
(Q3943104,P27,c(Q15617994))
action filter_type
action find
entity Q3943104
relation P27
type Q15617994
['Q3943104', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . resource:Q3943104 property:P27 ?d }
Ryan Toolson
action filter_type
action find
entity Ryan Toolson
relation country of citizenship
type designation for an administrative territorial entity
['Ryan Toolson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ryan_Toolson property:country_of_citizenship ?d }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q3943104,P27,c(Q15617994))
action filter_type
action find
entity Q3943104
relation P27
type Q15617994
Ryan Toolson belongs to [ANSWER]
['Q3943104', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . resource:Q3943104 property:P27 ?d }
United States of America
Ryan Toolson belongs to United States of America
United States of America
action filter_type
action find
entity Ryan Toolson
relation country of citizenship
type designation for an administrative territorial entity
['Ryan Toolson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ryan_Toolson property:country_of_citizenship ?d }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3943104
P54
Q12973014
USER
What is that person a member of ?
(Q30,P54,c(Q12973014))
action filter_type
action find
entity Q3943104
relation P54
type Q12973014
['Q30', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?b WHERE { resource:Q3943104 property:P54 ?b . ?b rdf:type ontology:Q12973014 }
Ryan Toolson
action filter_type
action find
entity Ryan Toolson
relation member of sports team
type sports team
['United States of America', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?b WHERE { resource:Ryan_Toolson property:member_of_sports_team ?b . ?b rdf:type ontology:sports_team }
[]
sports team
Q384718
SYSTEM
B.C. Zenit Saint Petersburg
Q384718
(Q30,P54,c(Q12973014))
action filter_type
action find
entity Q3943104
relation P54
type Q12973014
That person a member of is the [ANSWER]
['Q30', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?b WHERE { resource:Q3943104 property:P54 ?b . ?b rdf:type ontology:Q12973014 }
B.C. Zenit Saint Petersburg
That person a member of is the B.C. Zenit Saint Petersburg
B.C. Zenit Saint Petersburg
action filter_type
action find
entity Ryan Toolson
relation member of sports team
type sports team
['United States of America', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?b WHERE { resource:Ryan_Toolson property:member_of_sports_team ?b . ?b rdf:type ontology:sports_team }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5713925 Q3943104
P106
Q12737077
USER
Which occupations are the job of Ryan Toolson or Hendrik Reekers ?
OR((Q3943104,P106,c(Q12737077)), (Q5713925,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q3943104
relation P106
action find
entity Q5713925
relation P106
type Q12737077
{'OR': [['Q3943104', 'P106', {'concept': 'Q12737077'}], ['Q5713925', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q12737077 . { ?c property:P106 ?t . VALUES ( ?c ) { ( resource:Q3943104 ) ( resource:Q5713925 ) } } }
Hendrik Reekers Ryan Toolson
action filter_type
action union
action find
entity Ryan Toolson
relation occupation
action find
entity Hendrik Reekers
relation occupation
type occupation
{'OR': [['Ryan Toolson', 'occupation', {'concept': 'occupation'}], ['Hendrik Reekers', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:occupation . { ?c property:occupation ?t . VALUES ( ?c ) { ( resource:Ryan_Toolson ) ( resource:Hendrik_Reekers ) } } }
[]
occupation
Q1028181 Q3665646
SYSTEM
painter, basketball player
Q1028181 Q3665646
OR((Q3943104,P106,c(Q12737077)), (Q5713925,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q3943104
relation P106
action find
entity Q5713925
relation P106
type Q12737077
The [ANSWERS] are the job of Ryan Toolson or Hendrik Reekers
{'OR': [['Q3943104', 'P106', {'concept': 'Q12737077'}], ['Q5713925', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q12737077 . { ?c property:P106 ?t . VALUES ( ?c ) { ( resource:Q3943104 ) ( resource:Q5713925 ) } } }
painter basketball player
The painter and basketball player are the job of Ryan Toolson or Hendrik Reekers
painter basketball player
action filter_type
action union
action find
entity Ryan Toolson
relation occupation
action find
entity Hendrik Reekers
relation occupation
type occupation
{'OR': [['Ryan Toolson', 'occupation', {'concept': 'occupation'}], ['Hendrik Reekers', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:occupation . { ?c property:occupation ?t . VALUES ( ?c ) { ( resource:Ryan_Toolson ) ( resource:Hendrik_Reekers ) } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q223695 Q3943104
P106
Q12737077
USER
Which occupations have Ryan Toolson or Feliciano López as his/her as a career ?
OR((Q3943104,P106,c(Q12737077)), (Q223695,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q3943104
relation P106
action find
entity Q223695
relation P106
type Q12737077
{'OR': [['Q3943104', 'P106', {'concept': 'Q12737077'}], ['Q223695', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?w WHERE { { ?i property:P106 ?w . VALUES ( ?i ) { ( resource:Q3943104 ) ( resource:Q223695 ) } } . ?w rdf:type ontology:Q12737077 }
Feliciano López Ryan Toolson
action filter_type
action union
action find
entity Ryan Toolson
relation occupation
action find
entity Feliciano López
relation occupation
type occupation
{'OR': [['Ryan Toolson', 'occupation', {'concept': 'occupation'}], ['Feliciano López', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?w WHERE { { ?i property:occupation ?w . VALUES ( ?i ) { ( resource:Ryan_Toolson ) ( resource:Feliciano_López ) } } . ?w rdf:type ontology:occupation }
[]
occupation
Q4610556 Q10833314 Q3665646
SYSTEM
model, tennis player, basketball player
Q4610556 Q10833314 Q3665646
OR((Q3943104,P106,c(Q12737077)), (Q223695,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q3943104
relation P106
action find
entity Q223695
relation P106
type Q12737077
The [ANSWERS] have Ryan Toolson or Feliciano López as his/her as a career
{'OR': [['Q3943104', 'P106', {'concept': 'Q12737077'}], ['Q223695', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?w WHERE { { ?i property:P106 ?w . VALUES ( ?i ) { ( resource:Q3943104 ) ( resource:Q223695 ) } } . ?w rdf:type ontology:Q12737077 }
model tennis player basketball player
The model, tennis player and basketball player have Ryan Toolson or Feliciano López as his/her as a career
model tennis player basketball player
action filter_type
action union
action find
entity Ryan Toolson
relation occupation
action find
entity Feliciano López
relation occupation
type occupation
{'OR': [['Ryan Toolson', 'occupation', {'concept': 'occupation'}], ['Feliciano López', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?w WHERE { { ?i property:occupation ?w . VALUES ( ?i ) { ( resource:Ryan_Toolson ) ( resource:Feliciano_López ) } } . ?w rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q845929
P180
Q12737077 Q3305213 Q3516658
USER
Which occupations are expressed in around the same number of paintings and heraldic symbols as pretender ?
(c(Q3305213)|c(Q3516658),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
action count
action filter_multi_types
action find_reverse
entity Q845929
relation P180
type Q3305213
type Q3516658
[[{'concept': 'Q3305213'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?t ) WHERE { VALUES ( ?n ) { ( ontology:Q3305213 ) ( ontology:Q3516658 ) } . ?g rdf:type ?n } GROUP BY ?i } . FILTER ( ?t = ?c ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:P180 resource:Q845929 . { { ?u rdf:type ontology:Q3305213 } UNION { ?u rdf:type ontology:Q3516658 } } } } }
pretender
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
action count
action filter_multi_types
action find_reverse
entity pretender
relation depicts
type painting
type heraldic symbol
[[{'concept': 'painting'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?t ) WHERE { VALUES ( ?n ) { ( ontology:painting ) ( ontology:heraldic_symbol ) } . ?g rdf:type ?n } GROUP BY ?i } . FILTER ( ?t = ?c ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:depicts resource:pretender . { { ?u rdf:type ontology:painting } UNION { ?u rdf:type ontology:heraldic_symbol } } } } }
[]
occupation painting heraldic symbol
Q186360 Q242468 Q182436
SYSTEM
nurse, tailor, librarian
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q177220 Q1569439 Q16735601 Q37226 Q27621374 Q152355 Q1218776 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q4610556 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q47064 Q185196 Q328325 Q11900058 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q12902372 Q170790 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q2309900 Q805221 Q5371902 Q17126809 Q848550 Q386854 Q202648 Q1753370 Q107711 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 Q15954519 Q2981922 Q29182 Q326358 Q5575361 Q1161133 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q54128 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 Q1511216 Q16533 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q1627992 Q2309784 Q253567 Q3439798 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q765541 Q2011889 Q49476 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q373017 Q2180295 Q1294787 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q3305213)|c(Q3516658),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
action count
action filter_multi_types
action find_reverse
entity Q845929
relation P180
type Q3305213
type Q3516658
[ANSWERS] are expressed in around the same number of paintings and heraldic symbols as pretender
[[{'concept': 'Q3305213'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?t ) WHERE { VALUES ( ?n ) { ( ontology:Q3305213 ) ( ontology:Q3516658 ) } . ?g rdf:type ?n } GROUP BY ?i } . FILTER ( ?t = ?c ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:P180 resource:Q845929 . { { ?u rdf:type ontology:Q3305213 } UNION { ?u rdf:type ontology:Q3516658 } } } } }
fiddler acrobat milkmaid worker standard-bearer singer sheep shearer florist teacher bear hunter cobbler arriero 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 deacon wet nurse sailor clown spinner butcher military personnel midwife stonemason explorer civil servant sower abbé architect street musician nurse parson flautist mathematician mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic helmsman ballet dancer harpsichordist rescuer VOC Opperhoofd in Japan drummer referee curate firefighter 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 alchemist American pioneer bishop joiner goatherd pedicure courtesan member of parliament bartender clogmaker peddler reaper condottiero canon 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 matador goldsmith waterseller pretender astronomer surgeon domestic worker cook Kassandra embroiderer high-ranking civil servant in France exotic dancer lyricist plasterer gardener composer miller tightrope walker lady's maid sport cyclist apprentice King of France woodcutter lacemaker Snake charming carpenter school teacher officer baker knife grinder police officer guard Maid of honour kazasker madam archbishop boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric basketry mail carrier artisan bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
Nurse, tailor and librarian are expressed in around the same number of paintings and heraldic symbols as pretender
nurse tailor librarian
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
action count
action filter_multi_types
action find_reverse
entity pretender
relation depicts
type painting
type heraldic symbol
[[{'concept': 'painting'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?t ) WHERE { VALUES ( ?n ) { ( ontology:painting ) ( ontology:heraldic_symbol ) } . ?g rdf:type ?n } GROUP BY ?i } . FILTER ( ?t = ?c ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:depicts resource:pretender . { { ?u rdf:type ontology:painting } UNION { ?u rdf:type ontology:heraldic_symbol } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q11338576
P180
Q12737077 Q3305213 Q3516658
USER
And also tell me about boxer?
(c(Q3305213)|c(Q3516658),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
action count
action filter_multi_types
action find_reverse
entity Q11338576
relation P180
type Q3305213
type Q3516658
[[{'concept': 'Q3305213'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?f ) WHERE { { ?n property:P180 ?o . ?o rdf:type ontology:Q12737077 . ?n rdf:type ontology:Q3305213 } UNION { ?n property:P180 ?o . ?n rdf:type ontology:Q3516658 . ?o rdf:type ontology:Q12737077 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e property:P180 resource:Q11338576 . { { ?e rdf:type ontology:Q3305213 } UNION { ?e rdf:type ontology:Q3516658 } } } } . FILTER ( ?f = ?d ) }
boxer
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
action count
action filter_multi_types
action find_reverse
entity boxer
relation depicts
type painting
type heraldic symbol
[[{'concept': 'painting'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?f ) WHERE { { ?n property:depicts ?o . ?o rdf:type ontology:occupation . ?n rdf:type ontology:painting } UNION { ?n property:depicts ?o . ?n rdf:type ontology:heraldic_symbol . ?o rdf:type ontology:occupation } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e property:depicts resource:boxer . { { ?e rdf:type ontology:painting } UNION { ?e rdf:type ontology:heraldic_symbol } } } } . FILTER ( ?f = ?d ) }
[]
occupation painting heraldic symbol
Q186360 Q242468 Q182436
SYSTEM
nurse, tailor, librarian
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q177220 Q1569439 Q16735601 Q37226 Q27621374 Q152355 Q1218776 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q4610556 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q47064 Q185196 Q328325 Q11900058 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q12902372 Q170790 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q2309900 Q805221 Q5371902 Q17126809 Q848550 Q386854 Q202648 Q1753370 Q107711 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 Q15954519 Q2981922 Q29182 Q326358 Q5575361 Q1161133 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q54128 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 Q1511216 Q16533 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q1627992 Q2309784 Q253567 Q3439798 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q765541 Q2011889 Q49476 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q373017 Q2180295 Q1294787 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q3305213)|c(Q3516658),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
action count
action filter_multi_types
action find_reverse
entity Q11338576
relation P180
type Q3305213
type Q3516658
[ANSWERS]
[[{'concept': 'Q3305213'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?f ) WHERE { { ?n property:P180 ?o . ?o rdf:type ontology:Q12737077 . ?n rdf:type ontology:Q3305213 } UNION { ?n property:P180 ?o . ?n rdf:type ontology:Q3516658 . ?o rdf:type ontology:Q12737077 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e property:P180 resource:Q11338576 . { { ?e rdf:type ontology:Q3305213 } UNION { ?e rdf:type ontology:Q3516658 } } } } . FILTER ( ?f = ?d ) }
fiddler acrobat milkmaid worker standard-bearer singer sheep shearer florist teacher bear hunter cobbler arriero 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 deacon wet nurse sailor clown spinner butcher military personnel midwife stonemason explorer civil servant sower abbé architect street musician nurse parson flautist mathematician mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic helmsman ballet dancer harpsichordist rescuer VOC Opperhoofd in Japan drummer referee curate firefighter 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 alchemist American pioneer bishop joiner goatherd pedicure courtesan member of parliament bartender clogmaker peddler reaper condottiero canon 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 matador goldsmith waterseller pretender astronomer surgeon domestic worker cook Kassandra embroiderer high-ranking civil servant in France exotic dancer lyricist plasterer gardener composer miller tightrope walker lady's maid sport cyclist apprentice King of France woodcutter lacemaker Snake charming carpenter school teacher officer baker knife grinder police officer guard Maid of honour kazasker madam archbishop boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric basketry mail carrier artisan bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
nurse tailor librarian
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
action count
action filter_multi_types
action find_reverse
entity boxer
relation depicts
type painting
type heraldic symbol
[[{'concept': 'painting'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?f ) WHERE { { ?n property:depicts ?o . ?o rdf:type ontology:occupation . ?n rdf:type ontology:painting } UNION { ?n property:depicts ?o . ?n rdf:type ontology:heraldic_symbol . ?o rdf:type ontology:occupation } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e property:depicts resource:boxer . { { ?e rdf:type ontology:painting } UNION { ?e rdf:type ontology:heraldic_symbol } } } } . FILTER ( ?f = ?d ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q186360 Q242468 Q182436
P417
Q502895
USER
What are the names of person who are the patron saints of those occupations ?
(Q186360,P417,c(Q502895)) (Q242468,P417,c(Q502895)) (Q182436,P417,c(Q502895))
action filter_type
action find
entity prev_answer
relation P417
type Q502895
['Q186360', 'P417', {'concept': 'Q502895'}] ['Q242468', 'P417', {'concept': 'Q502895'}] ['Q182436', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { ?g property:P417 ?d . VALUES ( ?g ) { ( resource:Q19754019 ) ( resource:Q11957145 ) ( resource:Q1934482 ) } . ?d rdf:type ontology:Q502895 }
nurse tailor librarian
action filter_type
action find
entity prev_answer
relation patron saint
type common name
['nurse', 'patron saint', {'concept': 'common name'}] ['tailor', 'patron saint', {'concept': 'common name'}] ['librarian', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { ?g property:patron_saint ?d . VALUES ( ?g ) { ( resource:fiddler ) ( resource:acrobat ) ( resource:milkmaid ) } . ?d rdf:type ontology:common_name }
[]
common name
Q229190 Q44248 Q43982
SYSTEM
Catherine of Siena, Jerome, Bartholomew the Apostle
Q332656 Q200895 Q229190 Q137947 Q179718 Q179718 Q43982 Q179718 Q44248 Q17590
(Q186360,P417,c(Q502895)) (Q242468,P417,c(Q502895)) (Q182436,P417,c(Q502895))
action filter_type
action find
entity prev_answer
relation P417
type Q502895
The names of person are the patron saints of those occupations are Saint [ANSWERS]
['Q186360', 'P417', {'concept': 'Q502895'}] ['Q242468', 'P417', {'concept': 'Q502895'}] ['Q182436', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { ?g property:P417 ?d . VALUES ( ?g ) { ( resource:Q19754019 ) ( resource:Q11957145 ) ( resource:Q1934482 ) } . ?d rdf:type ontology:Q502895 }
Camillus de Lellis Agatha of Sicily Catherine of Siena Alexius of Rome Catherine of Alexandria Catherine of Alexandria Bartholomew the Apostle Catherine of Alexandria Jerome Lawrence of Rome
The names of person are the patron saints of those occupations are Saint Catherine of Siena, Jerome and Bartholomew the Apostle
Catherine of Siena Jerome Bartholomew the Apostle
action filter_type
action find
entity prev_answer
relation patron saint
type common name
['nurse', 'patron saint', {'concept': 'common name'}] ['tailor', 'patron saint', {'concept': 'common name'}] ['librarian', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { ?g property:patron_saint ?d . VALUES ( ?g ) { ( resource:fiddler ) ( resource:acrobat ) ( resource:milkmaid ) } . ?d rdf:type ontology:common_name }
[]