Simple Question (Direct)
Simple Question
Q3769992
P106
Q12737077
USER
What are the professions of Giuseppe Antonio Guattani ?
(Q3769992,P106,c(Q12737077))
action filter_type
action find
entity Q3769992
relation P106
type Q12737077
['Q3769992', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q3769992 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
Giuseppe Antonio Guattani
action filter_type
action find
entity Giuseppe Antonio Guattani
relation occupation
type occupation
['Giuseppe Antonio Guattani', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Giuseppe_Antonio_Guattani property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q3621491 Q36180
SYSTEM
archaeologist, writer
Q3621491 Q36180
(Q3769992,P106,c(Q12737077))
action filter_type
action find
entity Q3769992
relation P106
type Q12737077
The professions of Giuseppe Antonio Guattani are an [ANSWERS]
['Q3769992', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q3769992 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
archaeologist writer
The professions of Giuseppe Antonio Guattani are an archaeologist and writer
archaeologist writer
action filter_type
action find
entity Giuseppe Antonio Guattani
relation occupation
type occupation
['Giuseppe Antonio Guattani', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Giuseppe_Antonio_Guattani property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q3621491 Q36180
P101
Q502895
USER
Which people have field of work as those occupations ?
(c(Q502895),P101,Q3621491) (c(Q502895),P101,Q36180)
action filter_type
action find_reverse
entity prev_answer
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q3621491'] [{'concept': 'Q502895'}, 'P101', 'Q36180']
SELECT DISTINCT ?a WHERE { VALUES ( ?r ) { ( resource:Q3621491 ) ( resource:Q36180 ) } . ?a property:P101 ?r . ?a rdf:type ontology:Q502895 }
archaeologist writer
action filter_type
action find_reverse
entity prev_answer
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'archaeologist'] [{'concept': 'common name'}, 'field of work', 'writer']
SELECT DISTINCT ?a WHERE { VALUES ( ?r ) { ( resource:archaeologist ) ( resource:writer ) } . ?a property:field_of_work ?r . ?a rdf:type ontology:common_name }
[]
common name
Q102139 Q168569
SYSTEM
Margrethe II of Denmark, Martin Andersen Nexø
Q102139 Q168569
(c(Q502895),P101,Q3621491) (c(Q502895),P101,Q36180)
action filter_type
action find_reverse
entity prev_answer
relation P101
type Q502895
[ANSWERS] have field of work as those occupations
[{'concept': 'Q502895'}, 'P101', 'Q3621491'] [{'concept': 'Q502895'}, 'P101', 'Q36180']
SELECT DISTINCT ?a WHERE { VALUES ( ?r ) { ( resource:Q3621491 ) ( resource:Q36180 ) } . ?a property:P101 ?r . ?a rdf:type ontology:Q502895 }
Margrethe II of Denmark Martin Andersen Nexø
Margrethe II of Denmark and Martin Andersen Nexø have field of work as those occupations
Margrethe II of Denmark Martin Andersen Nexø
action filter_type
action find_reverse
entity prev_answer
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'archaeologist'] [{'concept': 'common name'}, 'field of work', 'writer']
SELECT DISTINCT ?a WHERE { VALUES ( ?r ) { ( resource:archaeologist ) ( resource:writer ) } . ?a property:field_of_work ?r . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q102139 Q168569
P106
Q12737077
USER
Which occupations are the professions of those people ?
(Q102139,P106,c(Q12737077)) (Q168569,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
['Q102139', 'P106', {'concept': 'Q12737077'}] ['Q168569', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?g ) { ( resource:Q102139 ) ( resource:Q168569 ) } . ?g property:P106 ?o . ?o rdf:type ontology:Q12737077 }
Margrethe II of Denmark Martin Andersen Nexø
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Margrethe II of Denmark', 'occupation', {'concept': 'occupation'}] ['Martin Andersen Nexø', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?g ) { ( resource:Margrethe_II_of_Denmark ) ( resource:Martin_Andersen_Nexø ) } . ?g property:occupation ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q2000124 Q1930187 Q36180
SYSTEM
postage stamp designer, journalist, writer
Q2000124 Q1930187 Q36180
(Q102139,P106,c(Q12737077)) (Q168569,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
The professions of those people are [ANSWERS]
['Q102139', 'P106', {'concept': 'Q12737077'}] ['Q168569', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?g ) { ( resource:Q102139 ) ( resource:Q168569 ) } . ?g property:P106 ?o . ?o rdf:type ontology:Q12737077 }
postage stamp designer journalist writer
The professions of those people are postage stamp designer, journalist and writer
postage stamp designer journalist writer
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Margrethe II of Denmark', 'occupation', {'concept': 'occupation'}] ['Martin Andersen Nexø', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?g ) { ( resource:Margrethe_II_of_Denmark ) ( resource:Martin_Andersen_Nexø ) } . ?g property:occupation ?o . ?o rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q102139
P27
Q1048835
USER
Which political territory is the native country of that person ?
(Q102139,P27,c(Q1048835))
action filter_type
action find
entity Q102139
relation P27
type Q1048835
['Q102139', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { resource:Q102139 property:P27 ?t . ?t rdf:type ontology:Q1048835 }
Margrethe II of Denmark
action filter_type
action find
entity Margrethe II of Denmark
relation country of citizenship
type political territorial entity
['Margrethe II of Denmark', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Margrethe_II_of_Denmark property:country_of_citizenship ?t . ?t rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q102139
SYSTEM
Did you mean Margrethe II of Denmark ?
Q2000124 Q1930187 Q36180
(Q2000124,P27,c(Q1048835)) (Q1930187,P27,c(Q1048835)) (Q36180,P27,c(Q1048835))
[ANSWER]
['Q2000124', 'P27', {'concept': 'Q1048835'}] ['Q1930187', 'P27', {'concept': 'Q1048835'}] ['Q36180', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { resource:Q102139 property:P27 ?t . ?t rdf:type ontology:Q1048835 }
postage stamp designer journalist writer
Did you mean Margrethe II of Denmark ?
Margrethe II of Denmark
['postage stamp designer', 'country of citizenship', {'concept': 'political territorial entity'}] ['journalist', 'country of citizenship', {'concept': 'political territorial entity'}] ['writer', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Margrethe_II_of_Denmark property:country_of_citizenship ?t . ?t rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q102139,P27,c(Q1048835))
['Q102139', 'P27', {'concept': 'Q1048835'}]
['Margrethe II of Denmark', 'country of citizenship', {'concept': 'political territorial entity'}]
[]
Q35
SYSTEM
Denmark
Q35
(Q102139,P27,c(Q1048835))
action filter_type
action find
entity Q102139
relation P27
type Q1048835
[ANSWER] is the native country of that person
['Q102139', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { resource:Q102139 property:P27 ?t . ?t rdf:type ontology:Q1048835 }
Denmark
Denmark is the native country of that person
Denmark
action filter_type
action find
entity Margrethe II of Denmark
relation country of citizenship
type political territorial entity
['Margrethe II of Denmark', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Margrethe_II_of_Denmark property:country_of_citizenship ?t . ?t rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q35 Q15043046 Q491280
P6
Q502895
USER
Does that political territory have its government headed by Sharon Bertsch McGrayne and Anders Sandøe Ørsted ?
(Q35,P6,Q15043046) (Q35,P6,Q491280)
action is_in
entity Q35
action intersection
action find_reverse
entity Q15043046
relation P6
action find_reverse
entity Q491280
relation P6
['Q35', 'P6', 'Q15043046'] ['Q35', 'P6', 'Q491280']
ASK WHERE { resource:Q35 property:P6 resource:Q15043046 . resource:Q35 property:P6 resource:Q491280 }
Denmark Sharon Bertsch McGrayne Anders Sandøe Ørsted
action is_in
entity Denmark
action intersection
action find_reverse
entity Sharon Bertsch McGrayne
relation head of government
action find_reverse
entity Anders Sandøe Ørsted
relation head of government
['Denmark', 'head of government', 'Sharon Bertsch McGrayne'] ['Denmark', 'head of government', 'Anders Sandøe Ørsted']
ASK WHERE { resource:Denmark property:head_of_government resource:Sharon_Bertsch_McGrayne . resource:Denmark property:head_of_government resource:Anders_Sandøe_Ørsted }
[]
common name
SYSTEM
NO and YES respectively
(Q35,P6,Q15043046) (Q35,P6,Q491280)
action is_in
entity Q35
action intersection
action find_reverse
entity Q15043046
relation P6
action find_reverse
entity Q491280
relation P6
[ANSWER]
['Q35', 'P6', 'Q15043046'] ['Q35', 'P6', 'Q491280']
ASK WHERE { resource:Q35 property:P6 resource:Q15043046 . resource:Q35 property:P6 resource:Q491280 }
NO and YES respectively
action is_in
entity Denmark
action intersection
action find_reverse
entity Sharon Bertsch McGrayne
relation head of government
action find_reverse
entity Anders Sandøe Ørsted
relation head of government
['Denmark', 'head of government', 'Sharon Bertsch McGrayne'] ['Denmark', 'head of government', 'Anders Sandøe Ørsted']
ASK WHERE { resource:Denmark property:head_of_government resource:Sharon_Bertsch_McGrayne . resource:Denmark property:head_of_government resource:Anders_Sandøe_Ørsted }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2995983
P180
Q12737077 Q386724 Q340169
USER
How many occupations are expressed in less number of works or medias than double-bassist ?
(c(Q386724)|c(Q340169),P180,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q2995983
relation P180
type Q386724
type Q340169
[[{'concept': 'Q386724'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) ?p WHERE { VALUES ( ?t ) { ( ontology:Q386724 ) ( ontology:Q340169 ) } . ?l rdf:type ?t } GROUP BY ?p } . FILTER ( ?b < ?w ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:P180 resource:Q2995983 . { { ?m rdf:type ontology:Q340169 } UNION { ?m rdf:type ontology:Q386724 } } } } }
double-bassist
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action count
action filter_multi_types
action find_reverse
entity double-bassist
relation depicts
type work
type media
[[{'concept': 'work'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) ?p WHERE { VALUES ( ?t ) { ( ontology:work ) ( ontology:media ) } . ?l rdf:type ?t } GROUP BY ?p } . FILTER ( ?b < ?w ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:depicts resource:double-bassist . { { ?m rdf:type ontology:media } UNION { ?m rdf:type ontology:work } } } } }
[]
occupation work media
SYSTEM
212
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 count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q2995983
relation P180
type Q386724
type Q340169
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) ?p WHERE { VALUES ( ?t ) { ( ontology:Q386724 ) ( ontology:Q340169 ) } . ?l rdf:type ?t } GROUP BY ?p } . FILTER ( ?b < ?w ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:P180 resource:Q2995983 . { { ?m rdf:type ontology:Q340169 } UNION { ?m rdf:type ontology:Q386724 } } } } }
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
212
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action count
action filter_multi_types
action find_reverse
entity double-bassist
relation depicts
type work
type media
[[{'concept': 'work'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) ?p WHERE { VALUES ( ?t ) { ( ontology:work ) ( ontology:media ) } . ?l rdf:type ?t } GROUP BY ?p } . FILTER ( ?b < ?w ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:depicts resource:double-bassist . { { ?m rdf:type ontology:media } UNION { ?m rdf:type ontology:work } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q5716684
P180
Q12737077 Q386724 Q340169
USER
And what about dancer?
(c(Q386724)|c(Q340169),P180,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q5716684
relation P180
type Q386724
type Q340169
[[{'concept': 'Q386724'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) ?l WHERE { { ?c property:P180 ?l . ?l rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q340169 } UNION { ?c property:P180 ?l . ?c rdf:type ontology:Q386724 . ?l rdf:type ontology:Q12737077 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { ?e property:P180 resource:Q5716684 . { ?e rdf:type ?f . VALUES ( ?f ) { ( ontology:Q386724 ) ( ontology:Q340169 ) } } } } . FILTER ( ?t < ?v ) }
dancer
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action count
action filter_multi_types
action find_reverse
entity dancer
relation depicts
type work
type media
[[{'concept': 'work'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) ?l WHERE { { ?c property:depicts ?l . ?l rdf:type ontology:occupation . ?c rdf:type ontology:media } UNION { ?c property:depicts ?l . ?c rdf:type ontology:work . ?l rdf:type ontology:occupation } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { ?e property:depicts resource:dancer . { ?e rdf:type ?f . VALUES ( ?f ) { ( ontology:work ) ( ontology:media ) } } } } . FILTER ( ?t < ?v ) }
[]
occupation work media
SYSTEM
212
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 count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q5716684
relation P180
type Q386724
type Q340169
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) ?l WHERE { { ?c property:P180 ?l . ?l rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q340169 } UNION { ?c property:P180 ?l . ?c rdf:type ontology:Q386724 . ?l rdf:type ontology:Q12737077 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { ?e property:P180 resource:Q5716684 . { ?e rdf:type ?f . VALUES ( ?f ) { ( ontology:Q386724 ) ( ontology:Q340169 ) } } } } . FILTER ( ?t < ?v ) }
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
212
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action count
action filter_multi_types
action find_reverse
entity dancer
relation depicts
type work
type media
[[{'concept': 'work'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) ?l WHERE { { ?c property:depicts ?l . ?l rdf:type ontology:occupation . ?c rdf:type ontology:media } UNION { ?c property:depicts ?l . ?c rdf:type ontology:work . ?l rdf:type ontology:occupation } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { ?e property:depicts resource:dancer . { ?e rdf:type ?f . VALUES ( ?f ) { ( ontology:work ) ( ontology:media ) } } } } . FILTER ( ?t < ?v ) }
[]