Simple Question (Direct)
Simple Question
Q6259313
P1196
Q1931388
USER
What situation did John Storey die in ?
(Q6259313,P1196,c(Q1931388))
action filter_type
action find
entity Q6259313
relation P1196
type Q1931388
['Q6259313', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?q WHERE { resource:Q6259313 property:P1196 ?q . ?q rdf:type ontology:Q1931388 }
John Storey
action filter_type
action find
entity John Storey
relation manner of death
type cause of death
['John Storey', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?q WHERE { resource:John_Storey property:manner_of_death ?q . ?q rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q6259313,P1196,c(Q1931388))
action filter_type
action find
entity Q6259313
relation P1196
type Q1931388
John Storey died of [ANSWER]
['Q6259313', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?q WHERE { resource:Q6259313 property:P1196 ?q . ?q rdf:type ontology:Q1931388 }
natural causes
John Storey died of natural causes
natural causes
action filter_type
action find
entity John Storey
relation manner of death
type cause of death
['John Storey', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?q WHERE { resource:John_Storey property:manner_of_death ?q . ?q rdf:type ontology:cause_of_death }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6259313
P102
Q7210356
USER
Which party does John Storey belong to ?
(Q6259313,P102,c(Q7210356))
action filter_type
action find
entity Q6259313
relation P102
type Q7210356
['Q6259313', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?e WHERE { resource:Q6259313 property:P102 ?e . ?e rdf:type ontology:Q7210356 }
John Storey
action filter_type
action find
entity John Storey
relation member of political party
type political organization
['John Storey', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?e WHERE { resource:John_Storey property:member_of_political_party ?e . ?e rdf:type ontology:political_organization }
[]
political organization
Q216082
SYSTEM
Australian Labor Party
Q216082
(Q6259313,P102,c(Q7210356))
action filter_type
action find
entity Q6259313
relation P102
type Q7210356
John Storey belongs to [ANSWER]
['Q6259313', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?e WHERE { resource:Q6259313 property:P102 ?e . ?e rdf:type ontology:Q7210356 }
Australian Labor Party
John Storey belongs to Australian Labor Party
Australian Labor Party
action filter_type
action find
entity John Storey
relation member of political party
type political organization
['John Storey', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?e WHERE { resource:John_Storey property:member_of_political_party ?e . ?e rdf:type ontology:political_organization }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3888382 Q6259313
P39 P106
Q12737077
USER
Which occupations were the positions for which John Storey were appointed or are the professions of Pablo Napoli ?
OR((Q6259313,P39,c(Q12737077)), (Q3888382,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6259313
relation P39
action find
entity Q3888382
relation P106
type Q12737077
{'OR': [['Q6259313', 'P39', {'concept': 'Q12737077'}], ['Q3888382', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q6259313 property:P39 ?f } UNION { resource:Q3888382 property:P106 ?f } } . ?f rdf:type ontology:Q12737077 }
Pablo Napoli John Storey
action filter_type
action union
action find
entity John Storey
relation position held
action find
entity Pablo Napoli
relation occupation
type occupation
{'OR': [['John Storey', 'position held', {'concept': 'occupation'}], ['Pablo Napoli', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?f WHERE { { { resource:John_Storey property:position_held ?f } UNION { resource:Pablo_Napoli property:occupation ?f } } . ?f rdf:type ontology:occupation }
[]
occupation
Q33999 Q13527950
SYSTEM
actor, Premier of New South Wales
Q33999 Q13527950
OR((Q6259313,P39,c(Q12737077)), (Q3888382,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6259313
relation P39
action find
entity Q3888382
relation P106
type Q12737077
The [ANSWERS] were the positions for which John Storey were appointed or are the professions of Pablo Napoli
{'OR': [['Q6259313', 'P39', {'concept': 'Q12737077'}], ['Q3888382', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q6259313 property:P39 ?f } UNION { resource:Q3888382 property:P106 ?f } } . ?f rdf:type ontology:Q12737077 }
actor Premier of New South Wales
The actor and Premier of New South Wales were the positions for which John Storey were appointed or are the professions of Pablo Napoli
actor Premier of New South Wales
action filter_type
action union
action find
entity John Storey
relation position held
action find
entity Pablo Napoli
relation occupation
type occupation
{'OR': [['John Storey', 'position held', {'concept': 'occupation'}], ['Pablo Napoli', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?f WHERE { { { resource:John_Storey property:position_held ?f } UNION { resource:Pablo_Napoli property:occupation ?f } } . ?f rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q12737077 Q11060274 Q3516658
USER
Which occupations are demonstrated in min number of prints and heraldic symbols ?
(c(Q11060274)|c(Q3516658),P180,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
[[{'concept': 'Q11060274'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?j = ?c ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) ?y WHERE { VALUES ( ?d ) { ( ontology:Q3516658 ) ( ontology:Q11060274 ) } . ?n rdf:type ?d } GROUP BY ?y } . { SELECT DISTINCT ( MIN ( ?t ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?h WHERE { { ?r property:P180 ?h . ?h rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q11060274 } UNION { ?r property:P180 ?h . ?h rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q3516658 } } GROUP BY ?h } } }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
[[{'concept': 'print'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?j = ?c ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) ?y WHERE { VALUES ( ?d ) { ( ontology:heraldic_symbol ) ( ontology:print ) } . ?n rdf:type ?d } GROUP BY ?y } . { SELECT DISTINCT ( MIN ( ?t ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?h WHERE { { ?r property:depicts ?h . ?h rdf:type ontology:occupation . ?r rdf:type ontology:print } UNION { ?r property:depicts ?h . ?h rdf:type ontology:occupation . ?r rdf:type ontology:heraldic_symbol } } GROUP BY ?h } } }
[]
occupation print heraldic symbol
Q186360 Q242468 Q182436
SYSTEM
nurse, tailor, librarian
Q19754019 Q11957145 Q1934482 Q19937286 Q177220 Q1569439 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 Q81710 Q1259917 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q4504549 Q842782 Q47064 Q185196 Q486748 Q328325 Q11900058 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 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 Q4991371 Q5575361 Q1161133 Q250867 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q54128 Q242468 Q45722 Q2596569 Q1234713 Q116 Q152002 Q2730732 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q965417 Q845929 Q774306 Q2276446 Q207651 Q5716684 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q1627992 Q2309784 Q253567 Q3439798 Q2191547 Q1437754 Q5832280 Q1430627 Q154549 Q189290 Q331432 Q49757 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(Q11060274)|c(Q3516658),P180,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
The [ANSWERS] are demonstrated in min number of prints and heraldic symbols
[[{'concept': 'Q11060274'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?j = ?c ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) ?y WHERE { VALUES ( ?d ) { ( ontology:Q3516658 ) ( ontology:Q11060274 ) } . ?n rdf:type ?d } GROUP BY ?y } . { SELECT DISTINCT ( MIN ( ?t ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?h WHERE { { ?r property:P180 ?h . ?h rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q11060274 } UNION { ?r property:P180 ?h . ?h rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q3516658 } } GROUP BY ?h } } }
fiddler acrobat milkmaid worker singer sheep shearer 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 shepherd violinist deacon wet nurse sailor clown spinner butcher religious servant detective military personnel midwife pianist stonemason explorer 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 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 soldier goatherd pedicure Catholic priest 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 monarch pastor equestrian courtier judge abbot matador goldsmith waterseller pretender surgeon domestic worker cook executioner dancer 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 officer fisherman poet 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
The nurse, tailor and librarian are demonstrated in min number of prints and heraldic symbols
nurse tailor librarian
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
[[{'concept': 'print'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?j = ?c ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) ?y WHERE { VALUES ( ?d ) { ( ontology:heraldic_symbol ) ( ontology:print ) } . ?n rdf:type ?d } GROUP BY ?y } . { SELECT DISTINCT ( MIN ( ?t ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?h WHERE { { ?r property:depicts ?h . ?h rdf:type ontology:occupation . ?r rdf:type ontology:print } UNION { ?r property:depicts ?h . ?h rdf:type ontology:occupation . ?r rdf:type ontology:heraldic_symbol } } GROUP BY ?h } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q242468
P138
Q79007 Q811430
USER
How many streets and constructions are the eponym of tailor ?
(c(Q79007),P138,Q242468) (c(Q811430),P138,Q242468)
action count
action union
action filter_type
action find_reverse
entity Q242468
relation P138
type Q79007
action filter_type
action find_reverse
entity Q242468
relation P138
type Q811430
[{'concept': 'Q79007'}, 'P138', 'Q242468'] [{'concept': 'Q811430'}, 'P138', 'Q242468']
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { ?j property:P138 resource:Q242468 . ?j rdf:type ontology:Q79007 } UNION { ?j property:P138 resource:Q242468 . ?j rdf:type ontology:Q811430 } }
tailor
action count
action union
action filter_type
action find_reverse
entity tailor
relation named after
type street
action filter_type
action find_reverse
entity tailor
relation named after
type construction
[{'concept': 'street'}, 'named after', 'tailor'] [{'concept': 'construction'}, 'named after', 'tailor']
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { ?j property:named_after resource:tailor . ?j rdf:type ontology:street } UNION { ?j property:named_after resource:tailor . ?j rdf:type ontology:construction } }
[]
street construction
SYSTEM
1 streets and 1 constructions
Q7536834 Q10670629
(c(Q79007),P138,Q242468) (c(Q811430),P138,Q242468)
action count
action union
action filter_type
action find_reverse
entity Q242468
relation P138
type Q79007
action filter_type
action find_reverse
entity Q242468
relation P138
type Q811430
[ANSWER]
[{'concept': 'Q79007'}, 'P138', 'Q242468'] [{'concept': 'Q811430'}, 'P138', 'Q242468']
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { ?j property:P138 resource:Q242468 . ?j rdf:type ontology:Q79007 } UNION { ?j property:P138 resource:Q242468 . ?j rdf:type ontology:Q811430 } }
Skräddargränd Skräddaregatan
1 streets and 1 constructions
action count
action union
action filter_type
action find_reverse
entity tailor
relation named after
type street
action filter_type
action find_reverse
entity tailor
relation named after
type construction
[{'concept': 'street'}, 'named after', 'tailor'] [{'concept': 'construction'}, 'named after', 'tailor']
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { ?j property:named_after resource:tailor . ?j rdf:type ontology:street } UNION { ?j property:named_after resource:tailor . ?j rdf:type ontology:construction } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q242468 Q40080
P138
Q811430
USER
How many constructions have tailor or beach as their namesake ?
(c(Q811430),P138,Q242468) (c(Q811430),P138,Q40080)
action count
action union
action filter_type
action find_reverse
entity Q242468
relation P138
type Q811430
action filter_type
action find_reverse
entity Q40080
relation P138
type Q811430
[{'concept': 'Q811430'}, 'P138', 'Q242468'] [{'concept': 'Q811430'}, 'P138', 'Q40080']
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { { ?d property:P138 resource:Q242468 . ?d rdf:type ontology:Q811430 } UNION { ?d property:P138 resource:Q40080 . ?d rdf:type ontology:Q811430 } }
tailor beach
action count
action union
action filter_type
action find_reverse
entity tailor
relation named after
type construction
action filter_type
action find_reverse
entity beach
relation named after
type construction
[{'concept': 'construction'}, 'named after', 'tailor'] [{'concept': 'construction'}, 'named after', 'beach']
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { { ?d property:named_after resource:tailor . ?d rdf:type ontology:construction } UNION { ?d property:named_after resource:beach . ?d rdf:type ontology:construction } }
[]
construction
SYSTEM
3
Q1512169 Q10546037 Q10670629
(c(Q811430),P138,Q242468) (c(Q811430),P138,Q40080)
action count
action union
action filter_type
action find_reverse
entity Q242468
relation P138
type Q811430
action filter_type
action find_reverse
entity Q40080
relation P138
type Q811430
[ANSWER]
[{'concept': 'Q811430'}, 'P138', 'Q242468'] [{'concept': 'Q811430'}, 'P138', 'Q40080']
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { { ?d property:P138 resource:Q242468 . ?d rdf:type ontology:Q811430 } UNION { ?d property:P138 resource:Q40080 . ?d rdf:type ontology:Q811430 } }
Strandvägen Klara Mälarstrand Skräddaregatan
3
action count
action union
action filter_type
action find_reverse
entity tailor
relation named after
type construction
action filter_type
action find_reverse
entity beach
relation named after
type construction
[{'concept': 'construction'}, 'named after', 'tailor'] [{'concept': 'construction'}, 'named after', 'beach']
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { { ?d property:named_after resource:tailor . ?d rdf:type ontology:construction } UNION { ?d property:named_after resource:beach . ?d rdf:type ontology:construction } }
[]