Simple Question (Direct)
Simple Question
Q7529577
P241
Q781132
USER
Which military branch is Sir William Edge, 1st Baronet associated with ?
(Q7529577,P241,c(Q781132))
action filter_type
action find
entity Q7529577
relation P241
type Q781132
['Q7529577', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?m WHERE { resource:Q7529577 property:P241 ?m . ?m rdf:type ontology:Q781132 }
Sir William Edge, 1st Baronet
action filter_type
action find
entity Sir William Edge, 1st Baronet
relation military branch
type military branch
['Sir William Edge, 1st Baronet', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?m WHERE { resource:Sir_William_Edge,_1st_Baronet property:military_branch ?m . ?m rdf:type ontology:military_branch }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
(Q7529577,P241,c(Q781132))
action filter_type
action find
entity Q7529577
relation P241
type Q781132
[ANSWER]
['Q7529577', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?m WHERE { resource:Q7529577 property:P241 ?m . ?m rdf:type ontology:Q781132 }
British Army
British Army
action filter_type
action find
entity Sir William Edge, 1st Baronet
relation military branch
type military branch
['Sir William Edge, 1st Baronet', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?m WHERE { resource:Sir_William_Edge,_1st_Baronet property:military_branch ?m . ?m rdf:type ontology:military_branch }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7529577
P102
Q7210356
USER
Which party does Sir William Edge, 1st Baronet belong to ?
(Q7529577,P102,c(Q7210356))
action filter_type
action find
entity Q7529577
relation P102
type Q7210356
['Q7529577', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?a WHERE { resource:Q7529577 property:P102 ?a . ?a rdf:type ontology:Q7210356 }
Sir William Edge, 1st Baronet
action filter_type
action find
entity Sir William Edge, 1st Baronet
relation member of political party
type political organization
['Sir William Edge, 1st Baronet', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?a WHERE { resource:Sir_William_Edge,_1st_Baronet property:member_of_political_party ?a . ?a rdf:type ontology:political_organization }
[]
political organization
Q622441
SYSTEM
Liberal Party
Q622441
(Q7529577,P102,c(Q7210356))
action filter_type
action find
entity Q7529577
relation P102
type Q7210356
Sir William Edge , 1st Baronet belongs to the [ANSWER]
['Q7529577', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?a WHERE { resource:Q7529577 property:P102 ?a . ?a rdf:type ontology:Q7210356 }
Liberal Party
Sir William Edge , 1st Baronet belongs to the Liberal Party
Liberal Party
action filter_type
action find
entity Sir William Edge, 1st Baronet
relation member of political party
type political organization
['Sir William Edge, 1st Baronet', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?a WHERE { resource:Sir_William_Edge,_1st_Baronet property:member_of_political_party ?a . ?a rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q622441
P1001
Q12737077
USER
Which occupation has control over the jurisdiction of that political organization ?
(c(Q12737077),P1001,Q622441)
action filter_type
action find_reverse
entity Q622441
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q622441']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q12737077 . ?c property:P1001 resource:Q622441 }
Liberal Party
action filter_type
action find_reverse
entity Liberal Party
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Liberal Party']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:occupation . ?c property:applies_to_jurisdiction resource:Liberal_Party }
[]
occupation
Q7241338
SYSTEM
President of the Liberal Party
Q7241338
(c(Q12737077),P1001,Q622441)
action filter_type
action find_reverse
entity Q622441
relation P1001
type Q12737077
The [ANSWER] has control over the jurisdiction of that political organization
[{'concept': 'Q12737077'}, 'P1001', 'Q622441']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q12737077 . ?c property:P1001 resource:Q622441 }
President of the Liberal Party
The President of the Liberal Party has control over the jurisdiction of that political organization
President of the Liberal Party
action filter_type
action find_reverse
entity Liberal Party
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Liberal Party']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:occupation . ?c property:applies_to_jurisdiction resource:Liberal_Party }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q7241338 Q2096808
P39
Q502895
USER
Did Johannes Lindner hold the position of that occupation ?
(Q2096808,P39,Q7241338)
action is_in
entity Q2096808
action find
entity Q7241338
relation P39
['Q2096808', 'P39', 'Q7241338']
ASK WHERE { resource:Q7241338 property:P39 resource:Q2096808 }
President of the Liberal Party Johannes Lindner
action is_in
entity Johannes Lindner
action find
entity President of the Liberal Party
relation position held
['Johannes Lindner', 'position held', 'President of the Liberal Party']
ASK WHERE { resource:President_of_the_Liberal_Party property:position_held resource:Johannes_Lindner }
[]
common name
SYSTEM
NO
(Q2096808,P39,Q7241338)
action is_in
entity Q2096808
action find
entity Q7241338
relation P39
[ANSWER]
['Q2096808', 'P39', 'Q7241338']
ASK WHERE { resource:Q7241338 property:P39 resource:Q2096808 }
No
action is_in
entity Johannes Lindner
action find
entity President of the Liberal Party
relation position held
['Johannes Lindner', 'position held', 'President of the Liberal Party']
ASK WHERE { resource:President_of_the_Liberal_Party property:position_held resource:Johannes_Lindner }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7529577
P97
Q355567
USER
What title was held by Sir William Edge, 1st Baronet ?
(Q7529577,P97,c(Q355567))
action filter_type
action find
entity Q7529577
relation P97
type Q355567
['Q7529577', 'P97', {'concept': 'Q355567'}]
SELECT DISTINCT ?x WHERE { resource:Q7529577 property:P97 ?x . ?x rdf:type ontology:Q355567 }
Sir William Edge, 1st Baronet
action filter_type
action find
entity Sir William Edge, 1st Baronet
relation noble title
type royal or noble rank
['Sir William Edge, 1st Baronet', 'noble title', {'concept': 'royal or noble rank'}]
SELECT DISTINCT ?x WHERE { resource:Sir_William_Edge,_1st_Baronet property:noble_title ?x . ?x rdf:type ontology:royal_or_noble_rank }
[]
royal or noble rank
Q282019
SYSTEM
baronet
Q282019
(Q7529577,P97,c(Q355567))
action filter_type
action find
entity Q7529577
relation P97
type Q355567
A [ANSWER] was held by Sir William Edge, 1st [ANSWER]
['Q7529577', 'P97', {'concept': 'Q355567'}]
SELECT DISTINCT ?x WHERE { resource:Q7529577 property:P97 ?x . ?x rdf:type ontology:Q355567 }
baronet
A baronet was held by Sir William Edge, 1st Baronet
baronet
action filter_type
action find
entity Sir William Edge, 1st Baronet
relation noble title
type royal or noble rank
['Sir William Edge, 1st Baronet', 'noble title', {'concept': 'royal or noble rank'}]
SELECT DISTINCT ?x WHERE { resource:Sir_William_Edge,_1st_Baronet property:noble_title ?x . ?x rdf:type ontology:royal_or_noble_rank }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7529577
P1412
Q34770
USER
Which language can that person understand ?
(Q282019,P1412,c(Q34770))
action filter_type
action find
entity Q7529577
relation P1412
type Q34770
['Q282019', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q34770 . resource:Q7529577 property:P1412 ?i }
Sir William Edge, 1st Baronet
action filter_type
action find
entity Sir William Edge, 1st Baronet
relation languages spoken, written or signed
type language
['baronet', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:language . resource:Sir_William_Edge,_1st_Baronet property:languages_spoken,_written_or_signed ?i }
[]
language
Q1860
SYSTEM
English
Q1860
(Q282019,P1412,c(Q34770))
action filter_type
action find
entity Q7529577
relation P1412
type Q34770
That person can understand the [ANSWER]
['Q282019', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q34770 . resource:Q7529577 property:P1412 ?i }
English
That person can understand the English
English
action filter_type
action find
entity Sir William Edge, 1st Baronet
relation languages spoken, written or signed
type language
['baronet', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:language . resource:Sir_William_Edge,_1st_Baronet property:languages_spoken,_written_or_signed ?i }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1860 Q775344 Q1346342
P361
Q5962346
USER
Is that language a part of teen drama and Anglic languages ?
(Q1860,P361,Q775344) (Q1860,P361,Q1346342)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q775344
relation P361
action find_reverse
entity Q1346342
relation P361
['Q1860', 'P361', 'Q775344'] ['Q1860', 'P361', 'Q1346342']
ASK WHERE { resource:Q1860 property:P361 resource:Q775344 . resource:Q1860 property:P361 resource:Q1346342 }
English teen drama Anglic languages
action is_in
entity English
action intersection
action find_reverse
entity teen drama
relation part of
action find_reverse
entity Anglic languages
relation part of
['English', 'part of', 'teen drama'] ['English', 'part of', 'Anglic languages']
ASK WHERE { resource:English property:part_of resource:teen_drama . resource:English property:part_of resource:Anglic_languages }
[]
classification scheme
SYSTEM
NO and YES respectively
(Q1860,P361,Q775344) (Q1860,P361,Q1346342)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q775344
relation P361
action find_reverse
entity Q1346342
relation P361
[ANSWER]
['Q1860', 'P361', 'Q775344'] ['Q1860', 'P361', 'Q1346342']
ASK WHERE { resource:Q1860 property:P361 resource:Q775344 . resource:Q1860 property:P361 resource:Q1346342 }
NO and YES respectively
action is_in
entity English
action intersection
action find_reverse
entity teen drama
relation part of
action find_reverse
entity Anglic languages
relation part of
['English', 'part of', 'teen drama'] ['English', 'part of', 'Anglic languages']
ASK WHERE { resource:English property:part_of resource:teen_drama . resource:English property:part_of resource:Anglic_languages }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q3214532
P180
Q12737077 Q838948 Q340169
USER
How many occupations are demonstrated in lesser number of works of art or medias than plowman ?
(c(Q838948)|c(Q340169),P180,c(Q12737077))
action count
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 Q340169
action count
action filter_multi_types
action find_reverse
entity Q3214532
relation P180
type Q838948
type Q340169
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?s WHERE { VALUES ( ?q ) { ( ontology:Q340169 ) ( ontology:Q838948 ) } . ?m rdf:type ?q } GROUP BY ?s } . FILTER ( ?u < ?z ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { ?o property:P180 resource:Q3214532 . { { ?o rdf:type ontology:Q838948 } UNION { ?o rdf:type ontology:Q340169 } } } } }
plowman
action count
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 media
action count
action filter_multi_types
action find_reverse
entity plowman
relation depicts
type work of art
type media
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?s WHERE { VALUES ( ?q ) { ( ontology:media ) ( ontology:work_of_art ) } . ?m rdf:type ?q } GROUP BY ?s } . FILTER ( ?u < ?z ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { ?o property:depicts resource:plowman . { { ?o rdf:type ontology:work_of_art } UNION { ?o rdf:type ontology:media } } } } }
[]
occupation work of art media
SYSTEM
169
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q1569439 Q16735601 Q37226 Q1401609 Q152355 Q1218776 Q1124183 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q33999 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q4610556 Q161944 Q472898 Q7358 Q19968805 Q4504549 Q842782 Q185196 Q486748 Q328325 Q11900058 Q483501 Q215536 Q212238 Q3430033 Q42973 Q14948018 Q955464 Q19723482 Q170790 Q1139055 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q327321 Q549322 Q327029 Q2309900 Q5371902 Q17126809 Q12097 Q848550 Q386854 Q202648 Q1753370 Q107711 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q537575 Q20826540 Q715301 Q11338576 Q14009165 Q15954519 Q10833314 Q1318187 Q29182 Q326358 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q1104153 Q10873124 Q15725121 Q185992 Q133485 Q674067 Q901 Q4594605 Q242468 Q2596569 Q1234713 Q848466 Q116 Q1509714 Q152002 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q11063 Q774306 Q2276446 Q207651 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q253567 Q3439798 Q2191547 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q160131 Q4990607 Q680928 Q6735310 Q765541 Q2011889 Q49476 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q191808 Q182436 Q2259532 Q811122 Q373017 Q2180295 Q1294787 Q2627286 Q437512 Q13414980 Q849424 Q7622988 Q157195
(c(Q838948)|c(Q340169),P180,c(Q12737077))
action count
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 Q340169
action count
action filter_multi_types
action find_reverse
entity Q3214532
relation P180
type Q838948
type Q340169
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?s WHERE { VALUES ( ?q ) { ( ontology:Q340169 ) ( ontology:Q838948 ) } . ?m rdf:type ?q } GROUP BY ?s } . FILTER ( ?u < ?z ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { ?o property:P180 resource:Q3214532 . { { ?o rdf:type ontology:Q838948 } UNION { ?o rdf:type ontology:Q340169 } } } } }
fiddler acrobat milkmaid worker standard-bearer sheep shearer florist teacher vaquero cobbler arriero lumberjack sewing executor astronaut cooper house painter organist 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 clown spinner religious servant detective midwife pianist stonemason explorer artist merchant civil servant abbé architect street musician parson mandolinist mathematician tax collector mayor bell-ringer miner beekeeper washerwoman cellist bricklayer torero mechanic helmsman harpsichordist rescuer king 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 trapper alchemist tennis player scrivener bishop joiner goatherd pedicure Catholic priest courtesan member of parliament bartender clogmaker peddler reaper canon chess player bassoonist mufti rabbi mime artist scientist magistrate tailor housekeeper theologian courier monarch porter pastor courtier judge abbot matador goldsmith astronomer surgeon domestic worker cook executioner exotic dancer lyricist plasterer gardener composer miller tightrope walker maid apprentice King of France picador woodcutter lacemaker Snake charming carpenter school teacher baker knife grinder guard Maid of honour kazasker madam archbishop boatman salesperson cricketer aviator milkmaid nun librarian cleric construction worker basketry mail carrier artisan bushranger weaver Australian-rules footballer sea captain street artist waiting staff
169
action count
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 media
action count
action filter_multi_types
action find_reverse
entity plowman
relation depicts
type work of art
type media
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?s WHERE { VALUES ( ?q ) { ( ontology:media ) ( ontology:work_of_art ) } . ?m rdf:type ?q } GROUP BY ?s } . FILTER ( ?u < ?z ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { ?o property:depicts resource:plowman . { { ?o rdf:type ontology:work_of_art } UNION { ?o rdf:type ontology:media } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q170779
P180
Q12737077 Q838948 Q340169
USER
And how about Kassandra?
(c(Q838948)|c(Q340169),P180,c(Q12737077))
action count
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 Q340169
action count
action filter_multi_types
action find_reverse
entity Q170779
relation P180
type Q838948
type Q340169
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?f ) WHERE { VALUES ( ?y ) { ( ontology:Q838948 ) ( ontology:Q340169 ) } . ?n rdf:type ?y } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { ?b property:P180 resource:Q170779 . { { ?b rdf:type ontology:Q838948 } UNION { ?b rdf:type ontology:Q340169 } } } } . FILTER ( ?f < ?h ) }
Kassandra
action count
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 media
action count
action filter_multi_types
action find_reverse
entity Kassandra
relation depicts
type work of art
type media
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?f ) WHERE { VALUES ( ?y ) { ( ontology:work_of_art ) ( ontology:media ) } . ?n rdf:type ?y } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { ?b property:depicts resource:Kassandra . { { ?b rdf:type ontology:work_of_art } UNION { ?b rdf:type ontology:media } } } } . FILTER ( ?f < ?h ) }
[]
occupation work of art media
SYSTEM
169
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q1569439 Q16735601 Q37226 Q1401609 Q152355 Q1218776 Q1124183 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q33999 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q4610556 Q161944 Q472898 Q7358 Q19968805 Q4504549 Q842782 Q185196 Q486748 Q328325 Q11900058 Q483501 Q215536 Q212238 Q3430033 Q42973 Q14948018 Q955464 Q19723482 Q170790 Q1139055 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q327321 Q549322 Q327029 Q2309900 Q5371902 Q17126809 Q12097 Q848550 Q386854 Q202648 Q1753370 Q107711 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q537575 Q20826540 Q715301 Q11338576 Q14009165 Q15954519 Q10833314 Q1318187 Q29182 Q326358 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q1104153 Q10873124 Q15725121 Q185992 Q133485 Q674067 Q901 Q4594605 Q242468 Q2596569 Q1234713 Q848466 Q116 Q1509714 Q152002 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q11063 Q774306 Q2276446 Q207651 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q253567 Q3439798 Q2191547 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q160131 Q4990607 Q680928 Q6735310 Q765541 Q2011889 Q49476 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q191808 Q182436 Q2259532 Q811122 Q373017 Q2180295 Q1294787 Q2627286 Q437512 Q13414980 Q849424 Q7622988 Q157195
(c(Q838948)|c(Q340169),P180,c(Q12737077))
action count
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 Q340169
action count
action filter_multi_types
action find_reverse
entity Q170779
relation P180
type Q838948
type Q340169
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?f ) WHERE { VALUES ( ?y ) { ( ontology:Q838948 ) ( ontology:Q340169 ) } . ?n rdf:type ?y } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { ?b property:P180 resource:Q170779 . { { ?b rdf:type ontology:Q838948 } UNION { ?b rdf:type ontology:Q340169 } } } } . FILTER ( ?f < ?h ) }
fiddler acrobat milkmaid worker standard-bearer sheep shearer florist teacher vaquero cobbler arriero lumberjack sewing executor astronaut cooper house painter organist 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 clown spinner religious servant detective midwife pianist stonemason explorer artist merchant civil servant abbé architect street musician parson mandolinist mathematician tax collector mayor bell-ringer miner beekeeper washerwoman cellist bricklayer torero mechanic helmsman harpsichordist rescuer king 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 trapper alchemist tennis player scrivener bishop joiner goatherd pedicure Catholic priest courtesan member of parliament bartender clogmaker peddler reaper canon chess player bassoonist mufti rabbi mime artist scientist magistrate tailor housekeeper theologian courier monarch porter pastor courtier judge abbot matador goldsmith astronomer surgeon domestic worker cook executioner exotic dancer lyricist plasterer gardener composer miller tightrope walker maid apprentice King of France picador woodcutter lacemaker Snake charming carpenter school teacher baker knife grinder guard Maid of honour kazasker madam archbishop boatman salesperson cricketer aviator milkmaid nun librarian cleric construction worker basketry mail carrier artisan bushranger weaver Australian-rules footballer sea captain street artist waiting staff
169
action count
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 media
action count
action filter_multi_types
action find_reverse
entity Kassandra
relation depicts
type work of art
type media
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?f ) WHERE { VALUES ( ?y ) { ( ontology:work_of_art ) ( ontology:media ) } . ?n rdf:type ?y } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { ?b property:depicts resource:Kassandra . { { ?b rdf:type ontology:work_of_art } UNION { ?b rdf:type ontology:media } } } } . FILTER ( ?f < ?h ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q170779
P21
Q290
USER
Which sex does that occupation belong to ?
action filter_type
action find
entity Q170779
relation P21
type Q290
SELECT DISTINCT ?d WHERE { resource:Q170779 property:P21 ?d . ?d rdf:type ontology:Q290 }
Kassandra
action filter_type
action find
entity Kassandra
relation gender
type sex
SELECT DISTINCT ?d WHERE { resource:Kassandra property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
action filter_type
action find
entity Q170779
relation P21
type Q290
That occupation belongs to the [ANSWER]
SELECT DISTINCT ?d WHERE { resource:Q170779 property:P21 ?d . ?d rdf:type ontology:Q290 }
female
That occupation belongs to the female
female
action filter_type
action find
entity Kassandra
relation gender
type sex
SELECT DISTINCT ?d WHERE { resource:Kassandra property:gender ?d . ?d rdf:type ontology:sex }
[]