Simple Question (Direct)
Simple Question
Q16266555
P102
Q7210356
USER
Which party is Pierre MacDonald affiliated with ?
(Q16266555,P102,c(Q7210356))
action filter_type
action find
entity Q16266555
relation P102
type Q7210356
['Q16266555', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?v WHERE { resource:Q16266555 property:P102 ?v . ?v rdf:type ontology:Q7210356 }
Pierre MacDonald
action filter_type
action find
entity Pierre MacDonald
relation member of political party
type political organization
['Pierre MacDonald', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?v WHERE { resource:Pierre_MacDonald property:member_of_political_party ?v . ?v rdf:type ontology:political_organization }
[]
political organization
Q1631384
SYSTEM
Quebec Liberal Party
Q1631384
(Q16266555,P102,c(Q7210356))
action filter_type
action find
entity Q16266555
relation P102
type Q7210356
Pierre MacDonald is affiliated with [ANSWER]
['Q16266555', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?v WHERE { resource:Q16266555 property:P102 ?v . ?v rdf:type ontology:Q7210356 }
Quebec Liberal Party
Pierre MacDonald is affiliated with Quebec Liberal Party
Quebec Liberal Party
action filter_type
action find
entity Pierre MacDonald
relation member of political party
type political organization
['Pierre MacDonald', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?v WHERE { resource:Pierre_MacDonald property:member_of_political_party ?v . ?v rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16266555
P39
Q12737077
USER
What was the position held by Pierre MacDonald ?
(Q16266555,P39,c(Q12737077))
action filter_type
action find
entity Q16266555
relation P39
type Q12737077
['Q16266555', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q16266555 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
Pierre MacDonald
action filter_type
action find
entity Pierre MacDonald
relation position held
type occupation
['Pierre MacDonald', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Pierre_MacDonald property:position_held ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q3305338
SYSTEM
Member of the National Assembly
Q3305338
(Q16266555,P39,c(Q12737077))
action filter_type
action find
entity Q16266555
relation P39
type Q12737077
The position held by Pierre MacDonald was a [ANSWER]
['Q16266555', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q16266555 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
Member of the National Assembly
The position held by Pierre MacDonald was a Member of the National Assembly
Member of the National Assembly
action filter_type
action find
entity Pierre MacDonald
relation position held
type occupation
['Pierre MacDonald', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Pierre_MacDonald property:position_held ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16266555
P27
Q1048835
USER
Which political territory is the native country of Pierre MacDonald ?
(Q16266555,P27,c(Q1048835))
action filter_type
action find
entity Q16266555
relation P27
type Q1048835
['Q16266555', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { resource:Q16266555 property:P27 ?x . ?x rdf:type ontology:Q1048835 }
Pierre MacDonald
action filter_type
action find
entity Pierre MacDonald
relation country of citizenship
type political territorial entity
['Pierre MacDonald', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Pierre_MacDonald property:country_of_citizenship ?x . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q16266555,P27,c(Q1048835))
action filter_type
action find
entity Q16266555
relation P27
type Q1048835
The [ANSWER] is the native country of Pierre MacDonald
['Q16266555', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { resource:Q16266555 property:P27 ?x . ?x rdf:type ontology:Q1048835 }
Canada
The Canada is the native country of Pierre MacDonald
Canada
action filter_type
action find
entity Pierre MacDonald
relation country of citizenship
type political territorial entity
['Pierre MacDonald', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Pierre_MacDonald property:country_of_citizenship ?x . ?x rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16
P206
Q17519152
USER
Which group of objects is located next to that political territory ?
(Q16,P206,c(Q17519152))
action filter_type
action find
entity Q16
relation P206
type Q17519152
['Q16', 'P206', {'concept': 'Q17519152'}]
SELECT DISTINCT ?l WHERE { resource:Q16 property:P206 ?l . ?l rdf:type ontology:Q17519152 }
Canada
action filter_type
action find
entity Canada
relation located next to body of water
type group of objects
['Canada', 'located next to body of water', {'concept': 'group of objects'}]
SELECT DISTINCT ?l WHERE { resource:Canada property:located_next_to_body_of_water ?l . ?l rdf:type ontology:group_of_objects }
[]
group of objects
Q7347
SYSTEM
Great Lakes
Q7347
(Q16,P206,c(Q17519152))
action filter_type
action find
entity Q16
relation P206
type Q17519152
[ANSWER] is located next to that political territory
['Q16', 'P206', {'concept': 'Q17519152'}]
SELECT DISTINCT ?l WHERE { resource:Q16 property:P206 ?l . ?l rdf:type ontology:Q17519152 }
Great Lakes
Great Lakes is located next to that political territory
Great Lakes
action filter_type
action find
entity Canada
relation located next to body of water
type group of objects
['Canada', 'located next to body of water', {'concept': 'group of objects'}]
SELECT DISTINCT ?l WHERE { resource:Canada property:located_next_to_body_of_water ?l . ?l rdf:type ontology:group_of_objects }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16
P36
Q56061
USER
Which administrative territory is called the capital of that political territory ?
(Q7347,P36,c(Q56061))
action filter_type
action find
entity Q16
relation P36
type Q56061
['Q7347', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q16 property:P36 ?c . ?c rdf:type ontology:Q56061 }
Canada
action filter_type
action find
entity Canada
relation capital
type administrative territorial entity
['Great Lakes', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Canada property:capital ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1930
SYSTEM
Ottawa
Q1930
(Q7347,P36,c(Q56061))
action filter_type
action find
entity Q16
relation P36
type Q56061
[ANSWER] is called the capital of that political territory
['Q7347', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q16 property:P36 ?c . ?c rdf:type ontology:Q56061 }
Ottawa
Ottawa is called the capital of that political territory
Ottawa
action filter_type
action find
entity Canada
relation capital
type administrative territorial entity
['Great Lakes', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Canada property:capital ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q7347 Q24563743
P361
Q502895
USER
How many people are a portion of Great Lakes or F. C. & G. Lewis ?
(c(Q502895),P361,Q7347) (c(Q502895),P361,Q24563743)
action count
action union
action filter_type
action find_reverse
entity Q7347
relation P361
type Q502895
action filter_type
action find_reverse
entity Q24563743
relation P361
type Q502895
[{'concept': 'Q502895'}, 'P361', 'Q7347'] [{'concept': 'Q502895'}, 'P361', 'Q24563743']
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { ?q property:P361 resource:Q24563743 . ?q rdf:type ontology:Q502895 } UNION { ?q property:P361 resource:Q7347 . ?q rdf:type ontology:Q502895 } }
Great Lakes F. C. & G. Lewis
action count
action union
action filter_type
action find_reverse
entity Great Lakes
relation part of
type common name
action filter_type
action find_reverse
entity F. C. & G. Lewis
relation part of
type common name
[{'concept': 'common name'}, 'part of', 'Great Lakes'] [{'concept': 'common name'}, 'part of', 'F. C. & G. Lewis']
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { ?q property:part_of resource:F._C._&_G._Lewis . ?q rdf:type ontology:common_name } UNION { ?q property:part_of resource:Great_Lakes . ?q rdf:type ontology:common_name } }
[]
common name
SYSTEM
2
Q3087098 Q16857840
(c(Q502895),P361,Q7347) (c(Q502895),P361,Q24563743)
action count
action union
action filter_type
action find_reverse
entity Q7347
relation P361
type Q502895
action filter_type
action find_reverse
entity Q24563743
relation P361
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P361', 'Q7347'] [{'concept': 'Q502895'}, 'P361', 'Q24563743']
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { ?q property:P361 resource:Q24563743 . ?q rdf:type ontology:Q502895 } UNION { ?q property:P361 resource:Q7347 . ?q rdf:type ontology:Q502895 } }
Frederick Christian Lewis George Robert Lewis
2
action count
action union
action filter_type
action find_reverse
entity Great Lakes
relation part of
type common name
action filter_type
action find_reverse
entity F. C. & G. Lewis
relation part of
type common name
[{'concept': 'common name'}, 'part of', 'Great Lakes'] [{'concept': 'common name'}, 'part of', 'F. C. & G. Lewis']
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { ?q property:part_of resource:F._C._&_G._Lewis . ?q rdf:type ontology:common_name } UNION { ?q property:part_of resource:Great_Lakes . ?q rdf:type ontology:common_name } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q842782
P180
Q12737077 Q838948 Q3305213
USER
Which occupations are expressed in lesser number of works of art and paintings than detective ?
(c(Q838948)|c(Q3305213),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q842782
relation P180
type Q838948
type Q3305213
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { { ?w rdf:type ontology:Q838948 } UNION { ?w rdf:type ontology:Q3305213 } } . ?w property:P180 resource:Q842782 } } . FILTER ( ?n < ?z ) . { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?n ) WHERE { VALUES ( ?l ) { ( ontology:Q838948 ) ( ontology:Q3305213 ) } . ?q rdf:type ?l } GROUP BY ?h } }
detective
action less
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 painting
action count
action filter_multi_types
action find_reverse
entity detective
relation depicts
type work of art
type painting
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { { ?w rdf:type ontology:work_of_art } UNION { ?w rdf:type ontology:painting } } . ?w property:depicts resource:detective } } . FILTER ( ?n < ?z ) . { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?n ) WHERE { VALUES ( ?l ) { ( ontology:work_of_art ) ( ontology:painting ) } . ?q rdf:type ?l } GROUP BY ?h } }
[]
occupation work of art painting
Q186360 Q242468 Q182436
SYSTEM
nurse, tailor, librarian
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q1569439 Q16735601 Q37226 Q152355 Q1218776 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q4610556 Q161944 Q472898 Q45199 Q7358 Q19968805 Q185196 Q328325 Q11900058 Q212238 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q170790 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q327321 Q549322 Q327029 Q2309900 Q5371902 Q17126809 Q848550 Q386854 Q202648 Q1753370 Q107711 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q537575 Q20826540 Q715301 Q11338576 Q15954519 Q29182 Q326358 Q5575361 Q1161133 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q15725121 Q185992 Q133485 Q674067 Q901 Q589897 Q4594605 Q242468 Q2596569 Q1234713 Q848466 Q116 Q1509714 Q152002 Q1511216 Q16533 Q2412523 Q211423 Q11063 Q774306 Q2276446 Q18575684 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q253567 Q3439798 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q765541 Q2011889 Q49476 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q191808 Q182436 Q2259532 Q373017 Q2180295 Q1294787 Q2627286 Q437512 Q13414980 Q849424 Q7622988 Q157195
(c(Q838948)|c(Q3305213),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q842782
relation P180
type Q838948
type Q3305213
[ANSWERS] are expressed in lesser number of works of art and paintings than detective
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { { ?w rdf:type ontology:Q838948 } UNION { ?w rdf:type ontology:Q3305213 } } . ?w property:P180 resource:Q842782 } } . FILTER ( ?n < ?z ) . { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?n ) WHERE { VALUES ( ?l ) { ( ontology:Q838948 ) ( ontology:Q3305213 ) } . ?q rdf:type ?l } GROUP BY ?h } }
fiddler acrobat milkmaid worker standard-bearer sheep shearer florist teacher cobbler arriero sewing executor astronaut cooper house painter organist double-bassist actor 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 midwife stonemason explorer civil servant abbé architect street musician nurse parson mathematician mayor bell-ringer miner beekeeper washerwoman cellist bricklayer torero mechanic helmsman harpsichordist rescuer VOC Opperhoofd in Japan drummer referee curate firefighter dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja friar hobo fishmonger recorder player laborer gravedigger erudite comics artist boxer alchemist bishop joiner goatherd pedicure courtesan member of parliament bartender clogmaker peddler reaper condottiero canon bassoonist mufti rabbi mime artist scientist mahout magistrate tailor housekeeper theologian courier monarch porter pastor courtier judge matador goldsmith astronomer surgeon domestic worker cook embroiderer exotic dancer lyricist plasterer gardener composer miller tightrope walker apprentice King of France woodcutter lacemaker Snake charming carpenter school teacher baker knife grinder police officer guard Maid of honour kazasker madam archbishop boatman salesperson cricketer aviator milkmaid nun librarian cleric basketry mail carrier artisan bushranger weaver Australian-rules footballer sea captain street artist waiting staff
Nurse, tailor and librarian are expressed in lesser number of works of art and paintings than detective
nurse tailor librarian
action less
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 painting
action count
action filter_multi_types
action find_reverse
entity detective
relation depicts
type work of art
type painting
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { { ?w rdf:type ontology:work_of_art } UNION { ?w rdf:type ontology:painting } } . ?w property:depicts resource:detective } } . FILTER ( ?n < ?z ) . { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?n ) WHERE { VALUES ( ?l ) { ( ontology:work_of_art ) ( ontology:painting ) } . ?q rdf:type ?l } GROUP BY ?h } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q36180
P180
Q12737077 Q838948 Q3305213
USER
And also tell me about writer?
(c(Q838948)|c(Q3305213),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q36180
relation P180
type Q838948
type Q3305213
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?a < ?p ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:P180 resource:Q36180 . { VALUES ( ?t ) { ( ontology:Q838948 ) ( ontology:Q3305213 ) } . ?j rdf:type ?t } } } . { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?a ) WHERE { { ?c rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q838948 . ?x property:P180 ?c } UNION { ?x property:P180 ?c . ?c rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q3305213 } } GROUP BY ?c } }
writer
action less
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 painting
action count
action filter_multi_types
action find_reverse
entity writer
relation depicts
type work of art
type painting
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?a < ?p ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:depicts resource:writer . { VALUES ( ?t ) { ( ontology:work_of_art ) ( ontology:painting ) } . ?j rdf:type ?t } } } . { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?a ) WHERE { { ?c rdf:type ontology:occupation . ?x rdf:type ontology:work_of_art . ?x property:depicts ?c } UNION { ?x property:depicts ?c . ?c rdf:type ontology:occupation . ?x rdf:type ontology:painting } } GROUP BY ?c } }
[]
occupation work of art painting
Q186360 Q242468 Q182436
SYSTEM
nurse, tailor, librarian
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q1569439 Q16735601 Q37226 Q152355 Q1218776 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q4610556 Q161944 Q472898 Q45199 Q7358 Q19968805 Q185196 Q328325 Q11900058 Q212238 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q170790 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q327321 Q549322 Q327029 Q2309900 Q5371902 Q17126809 Q848550 Q386854 Q202648 Q1753370 Q107711 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q537575 Q20826540 Q715301 Q11338576 Q15954519 Q29182 Q326358 Q5575361 Q1161133 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q15725121 Q185992 Q133485 Q674067 Q901 Q589897 Q4594605 Q242468 Q2596569 Q1234713 Q848466 Q116 Q1509714 Q152002 Q1511216 Q16533 Q2412523 Q211423 Q11063 Q774306 Q2276446 Q18575684 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q253567 Q3439798 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q765541 Q2011889 Q49476 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q191808 Q182436 Q2259532 Q373017 Q2180295 Q1294787 Q2627286 Q437512 Q13414980 Q849424 Q7622988 Q157195
(c(Q838948)|c(Q3305213),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q36180
relation P180
type Q838948
type Q3305213
[ANSWERS]
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?a < ?p ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:P180 resource:Q36180 . { VALUES ( ?t ) { ( ontology:Q838948 ) ( ontology:Q3305213 ) } . ?j rdf:type ?t } } } . { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?a ) WHERE { { ?c rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q838948 . ?x property:P180 ?c } UNION { ?x property:P180 ?c . ?c rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q3305213 } } GROUP BY ?c } }
fiddler acrobat milkmaid worker standard-bearer sheep shearer florist teacher cobbler arriero sewing executor astronaut cooper house painter organist double-bassist actor 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 midwife stonemason explorer civil servant abbé architect street musician nurse parson mathematician mayor bell-ringer miner beekeeper washerwoman cellist bricklayer torero mechanic helmsman harpsichordist rescuer VOC Opperhoofd in Japan drummer referee curate firefighter dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja friar hobo fishmonger recorder player laborer gravedigger erudite comics artist boxer alchemist bishop joiner goatherd pedicure courtesan member of parliament bartender clogmaker peddler reaper condottiero canon bassoonist mufti rabbi mime artist scientist mahout magistrate tailor housekeeper theologian courier monarch porter pastor courtier judge matador goldsmith astronomer surgeon domestic worker cook embroiderer exotic dancer lyricist plasterer gardener composer miller tightrope walker apprentice King of France woodcutter lacemaker Snake charming carpenter school teacher baker knife grinder police officer guard Maid of honour kazasker madam archbishop boatman salesperson cricketer aviator milkmaid nun librarian cleric basketry mail carrier artisan bushranger weaver Australian-rules footballer sea captain street artist waiting staff
nurse tailor librarian
action less
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 painting
action count
action filter_multi_types
action find_reverse
entity writer
relation depicts
type work of art
type painting
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?a < ?p ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:depicts resource:writer . { VALUES ( ?t ) { ( ontology:work_of_art ) ( ontology:painting ) } . ?j rdf:type ?t } } } . { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?a ) WHERE { { ?c rdf:type ontology:occupation . ?x rdf:type ontology:work_of_art . ?x property:depicts ?c } UNION { ?x property:depicts ?c . ?c rdf:type ontology:occupation . ?x rdf:type ontology:painting } } GROUP BY ?c } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q242468
P106
Q502895
USER
Which people have that occupation as his/her means of employment ?
(c(Q502895),P106,Q242468)
action filter_type
action find_reverse
entity Q242468
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q242468']
SELECT DISTINCT ?e WHERE { ?e property:P106 resource:Q242468 . ?e rdf:type ontology:Q502895 }
tailor
action filter_type
action find_reverse
entity tailor
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'tailor']
SELECT DISTINCT ?e WHERE { ?e property:occupation resource:tailor . ?e rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q186360
SYSTEM
Did you mean nurse ?
Q186360 Q242468 Q182436
(c(Q502895),P106,Q186360) (c(Q502895),P106,Q242468) (c(Q502895),P106,Q182436)
[ANSWER]
[{'concept': 'Q502895'}, 'P106', 'Q186360'] [{'concept': 'Q502895'}, 'P106', 'Q242468'] [{'concept': 'Q502895'}, 'P106', 'Q182436']
SELECT DISTINCT ?e WHERE { ?e property:P106 resource:Q242468 . ?e rdf:type ontology:Q502895 }
nurse tailor librarian
Did you mean nurse ?
nurse
[{'concept': 'common name'}, 'occupation', 'nurse'] [{'concept': 'common name'}, 'occupation', 'tailor'] [{'concept': 'common name'}, 'occupation', 'librarian']
SELECT DISTINCT ?e WHERE { ?e property:occupation resource:tailor . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant tailor. Could you tell me the answer for that?
(c(Q502895),P106,Q242468)
Q242468
[{'concept': 'Q502895'}, 'P106', 'Q242468']
[{'concept': 'common name'}, 'occupation', 'tailor']
[]
Q21027941 Q62539 Q15813119
SYSTEM
Renate Hochmuth, Gudrun Burwitz, Rita Hagl-Kehl
Q16943443 Q26449097 Q7146930 Q330752 Q1593453 Q9028045 Q1079633 Q19279068 Q1459228 Q1357639 Q15811961 Q20888454 Q1699225 Q104093 Q110131 Q6781001 Q7412064 Q4767510 Q3173181 Q3557728 Q19964059 Q62539 Q41921 Q11934591 Q2644430 Q19974227 Q12788524 Q3051197 Q18024855 Q3771122 Q18684307 Q19845356 Q4411860 Q595291 Q26220768 Q1176477 Q8077873 Q4613831 Q363046 Q23085593 Q5331658 Q15813119 Q394660 Q3436888 Q1530772 Q72876 Q18672179 Q805616 Q5713698 Q4994132 Q19956451 Q21043151 Q19279532 Q713064 Q1072531 Q15812064 Q95520 Q1704708 Q4499795 Q22452565 Q5546925 Q5906013 Q18529336 Q2232889 Q936206 Q11536843 Q330009 Q112070 Q14540497 Q18671156 Q2058196 Q1895084 Q3359235 Q11875411 Q21030814 Q7792128 Q20871024 Q9139586 Q27089509 Q27117341 Q1601969 Q18684261 Q16210035 Q6257882 Q21027941 Q16607482 Q21903477 Q2673194 Q21486108 Q10376368 Q24264230 Q4712501 Q27832165 Q16864282 Q124060 Q19259430
(c(Q502895),P106,Q242468)
action filter_type
action find_reverse
entity Q242468
relation P106
type Q502895
[ANSWERS] have that occupation as his/her means of employment
[{'concept': 'Q502895'}, 'P106', 'Q242468']
SELECT DISTINCT ?e WHERE { ?e property:P106 resource:Q242468 . ?e rdf:type ontology:Q502895 }
Climent Peix i Armengou Jussi Tirkkonen Patrick Kelly Abraham Zapruder Hedy Urach Manuel Pertegaz Christian Friedrich Mentel Elisabeth Rose Friedrich Georg Göthe Ernst Braun Gerhard Schwedka Johann Christoph Winters John Badby Wilhelm Krasnapolsky Franz Muller Mary Young Pickersgill Samuel Lyons Anna Sterky Jean Leperdit Victorien Bruguier Joachim Peter Perlin Gudrun Burwitz Rosa Parks Magí Pers i Ramona Alfons Müller-Wipperfürth George Smart Ernestina Jelovšek Elizabeth Cass Margarete Hofmann Giuseppe Ottaviani Melanie Risch Martin Marmontel Arman Alizad Anton Weidinger T. A. Flynn Imre Mező Éamon a Búrc Franziska Braun Christian Mortensen Sientje Prijes Ebenezer Butterick Rita Hagl-Kehl Agnes Wabnitz Đuro Salaj Wilhelm Bergers Günter Litfin Robert Hill Balthasar Kestner Hendrick Hendricksen Kip Ginnie Wade Lionel Cros Juan de Alcega Felix Imre Artin Penik Can Xue Gert Weber Johann Eccarius Josef Gunkel Sien Hoornik Jeanne Margaine-Lacroix Georges de Paris Héctor Atilio Delmar Fran Bartl Ab van der Steur Bernhard Willhelm Yumi Katsura Romeo Gigli Franz Reichelt Mascha Mioni Esther Bruce Patrizia von Brandenstein Margaretha Ley Ozwald Boateng Lempi Tuomi Simon Porte Jacquemus Thomas Mahon Peter Shorrocks Adam Giedrys Israël Rubin Huna Caisman Helene Heyckendorf Elisabeth Mill Martin Greenfield John Simmons Renate Hochmuth Miguel Ángel Sandoval Peter P. Acritelli Marie Abts Robert Buchanan Sílvio João de Oliveira W. D. F. Vincent Philomene Steiger Majer Belfer Henry Creed Jakob Ammann Anna Gräf
Renate Hochmuth, Gudrun Burwitz and Rita Hagl-Kehl have that occupation as his/her means of employment
Renate Hochmuth Gudrun Burwitz Rita Hagl-Kehl
action filter_type
action find_reverse
entity tailor
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'tailor']
SELECT DISTINCT ?e WHERE { ?e property:occupation resource:tailor . ?e rdf:type ontology:common_name }
[]