Simple Question (Direct)
Simple Question
Q1307760
P39
Q12737077
USER
Which occupations were the positions for which Horst Milde were appointed ?
(Q1307760,P39,c(Q12737077))
action filter_type
action find
entity Q1307760
relation P39
type Q12737077
['Q1307760', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q1307760 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
Horst Milde
action filter_type
action find
entity Horst Milde
relation position held
type occupation
['Horst Milde', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Horst_Milde property:position_held ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q30185 Q17521638
SYSTEM
mayor, Member of the Landtag of Lower Saxony
Q30185 Q17521638
(Q1307760,P39,c(Q12737077))
action filter_type
action find
entity Q1307760
relation P39
type Q12737077
The [ANSWERS] were the positions for which Horst Milde were appointed
['Q1307760', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q1307760 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
mayor Member of the Landtag of Lower Saxony
The mayor and Member of the Landtag of Lower Saxony were the positions for which Horst Milde were appointed
mayor Member of the Landtag of Lower Saxony
action filter_type
action find
entity Horst Milde
relation position held
type occupation
['Horst Milde', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Horst_Milde property:position_held ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1307760
P102
Q7278
USER
Which political party is Horst Milde a member of ?
(Q1307760,P102,c(Q7278))
action filter_type
action find
entity Q1307760
relation P102
type Q7278
['Q1307760', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q7278 . resource:Q1307760 property:P102 ?s }
Horst Milde
action filter_type
action find
entity Horst Milde
relation member of political party
type political party
['Horst Milde', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:political_party . resource:Horst_Milde property:member_of_political_party ?s }
[]
political party
Q49768
SYSTEM
Social Democratic Party of Germany
Q49768
(Q1307760,P102,c(Q7278))
action filter_type
action find
entity Q1307760
relation P102
type Q7278
Party [ANSWER] is Horst Milde a member of
['Q1307760', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q7278 . resource:Q1307760 property:P102 ?s }
Social Democratic Party of Germany
Party Social Democratic Party of Germany is Horst Milde a member of
Social Democratic Party of Germany
action filter_type
action find
entity Horst Milde
relation member of political party
type political party
['Horst Milde', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:political_party . resource:Horst_Milde property:member_of_political_party ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17521638
P361
Q1752346
USER
What is Member of the Landtag of Lower Saxony a component of ?
(Q17521638,P361,c(Q1752346))
action filter_type
action find
entity Q17521638
relation P361
type Q1752346
['Q17521638', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?g WHERE { resource:Q17521638 property:P361 ?g . ?g rdf:type ontology:Q1752346 }
Member of the Landtag of Lower Saxony
action filter_type
action find
entity Member of the Landtag of Lower Saxony
relation part of
type assembly
['Member of the Landtag of Lower Saxony', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?g WHERE { resource:Member_of_the_Landtag_of_Lower_Saxony property:part_of ?g . ?g rdf:type ontology:assembly }
[]
assembly
Q319994
SYSTEM
Landtag of Lower Saxony
Q319994
(Q17521638,P361,c(Q1752346))
action filter_type
action find
entity Q17521638
relation P361
type Q1752346
The [ANSWER] is Member of the [ANSWER] a component of
['Q17521638', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?g WHERE { resource:Q17521638 property:P361 ?g . ?g rdf:type ontology:Q1752346 }
Landtag of Lower Saxony
The Landtag of Lower Saxony is Member of the Landtag of Lower Saxony a component of
Landtag of Lower Saxony
action filter_type
action find
entity Member of the Landtag of Lower Saxony
relation part of
type assembly
['Member of the Landtag of Lower Saxony', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?g WHERE { resource:Member_of_the_Landtag_of_Lower_Saxony property:part_of ?g . ?g rdf:type ontology:assembly }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1969545
Q1752346
USER
And what about National Assembly?
(Q1969545,P361,c(Q1752346))
action filter_type
action find
entity Q1969545
relation P361
type Q1752346
['Q1969545', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?f WHERE { resource:Q1969545 property:P361 ?f . ?f rdf:type ontology:Q1752346 }
National Assembly
action filter_type
action find
entity National Assembly
relation part of
type assembly
['National Assembly', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?f WHERE { resource:National_Assembly property:part_of ?f . ?f rdf:type ontology:assembly }
[]
assembly
Q4345413
SYSTEM
Parliament of Gabon
Q4345413
(Q1969545,P361,c(Q1752346))
action filter_type
action find
entity Q1969545
relation P361
type Q1752346
[ANSWER]
['Q1969545', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?f WHERE { resource:Q1969545 property:P361 ?f . ?f rdf:type ontology:Q1752346 }
Parliament of Gabon
Parliament of Gabon
action filter_type
action find
entity National Assembly
relation part of
type assembly
['National Assembly', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?f WHERE { resource:National_Assembly property:part_of ?f . ?f rdf:type ontology:assembly }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P194
Q1752346 Q852446
USER
Which US administrative territories have approximately 1 assembly as their legislative body ?
(c(Q852446),P194,c(Q1752346))
action approx
action find_tuple_counts
relation P194
type Q852446
type Q1752346
value 1
[{'concept': 'Q852446'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?t ) AS ?g ) WHERE { ?b property:P194 ?t . ?b rdf:type ontology:Q852446 . ?t rdf:type ontology:Q1752346 } GROUP BY ?b } . FILTER ( ?g = 1 ) }
action approx
action find_tuple_counts
relation legislative body
type administrative territorial entity of the United States
type assembly
value 1
[{'concept': 'administrative territorial entity of the United States'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?t ) AS ?g ) WHERE { ?b property:legislative_body ?t . ?b rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?t rdf:type ontology:assembly } GROUP BY ?b } . FILTER ( ?g = 1 ) }
[]
assembly administrative territorial entity of the United States
Q487704
SYSTEM
Honolulu County
Q487704
(c(Q852446),P194,c(Q1752346))
action approx
action find_tuple_counts
relation P194
type Q852446
type Q1752346
value 1
[ANSWER] have approximately 1 assembly as their legislative body
[{'concept': 'Q852446'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?t ) AS ?g ) WHERE { ?b property:P194 ?t . ?b rdf:type ontology:Q852446 . ?t rdf:type ontology:Q1752346 } GROUP BY ?b } . FILTER ( ?g = 1 ) }
Honolulu County
Honolulu County have approximately 1 assembly as their legislative body
Honolulu County
action approx
action find_tuple_counts
relation legislative body
type administrative territorial entity of the United States
type assembly
value 1
[{'concept': 'administrative territorial entity of the United States'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?t ) AS ?g ) WHERE { ?b property:legislative_body ?t . ?b rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?t rdf:type ontology:assembly } GROUP BY ?b } . FILTER ( ?g = 1 ) }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q487704 Q3551 Q190187
P190
Q56061
USER
Is that US administrative territory sister town of Rabat and Sintra ?
(Q487704,P190,Q3551) (Q487704,P190,Q190187)
action is_in
entity Q487704
action intersection
action find_reverse
entity Q3551
relation P190
action find_reverse
entity Q190187
relation P190
['Q487704', 'P190', 'Q3551'] ['Q487704', 'P190', 'Q190187']
ASK WHERE { resource:Q487704 property:P190 resource:Q3551 . resource:Q487704 property:P190 resource:Q190187 }
Honolulu County Rabat Sintra
action is_in
entity Honolulu County
action intersection
action find_reverse
entity Rabat
relation sister city
action find_reverse
entity Sintra
relation sister city
['Honolulu County', 'sister city', 'Rabat'] ['Honolulu County', 'sister city', 'Sintra']
ASK WHERE { resource:Honolulu_County property:sister_city resource:Rabat . resource:Honolulu_County property:sister_city resource:Sintra }
[]
administrative territorial entity
SYSTEM
YES
(Q487704,P190,Q3551) (Q487704,P190,Q190187)
action is_in
entity Q487704
action intersection
action find_reverse
entity Q3551
relation P190
action find_reverse
entity Q190187
relation P190
[ANSWER]
['Q487704', 'P190', 'Q3551'] ['Q487704', 'P190', 'Q190187']
ASK WHERE { resource:Q487704 property:P190 resource:Q3551 . resource:Q487704 property:P190 resource:Q190187 }
Yes
action is_in
entity Honolulu County
action intersection
action find_reverse
entity Rabat
relation sister city
action find_reverse
entity Sintra
relation sister city
['Honolulu County', 'sister city', 'Rabat'] ['Honolulu County', 'sister city', 'Sintra']
ASK WHERE { resource:Honolulu_County property:sister_city resource:Rabat . resource:Honolulu_County property:sister_city resource:Sintra }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q4345413 Q1000
P17
Q1048835
USER
Is Parliament of Gabon situated in Gabon ?
(Q4345413,P17,Q1000)
action is_in
entity Q1000
action find
entity Q4345413
relation P17
['Q4345413', 'P17', 'Q1000']
ASK WHERE { resource:Q4345413 property:P17 resource:Q1000 }
Parliament of Gabon Gabon
action is_in
entity Gabon
action find
entity Parliament of Gabon
relation country
['Parliament of Gabon', 'country', 'Gabon']
ASK WHERE { resource:Parliament_of_Gabon property:country resource:Gabon }
[]
political territorial entity
SYSTEM
YES
(Q4345413,P17,Q1000)
action is_in
entity Q1000
action find
entity Q4345413
relation P17
[ANSWER]
['Q4345413', 'P17', 'Q1000']
ASK WHERE { resource:Q4345413 property:P17 resource:Q1000 }
Yes
action is_in
entity Gabon
action find
entity Parliament of Gabon
relation country
['Parliament of Gabon', 'country', 'Gabon']
ASK WHERE { resource:Parliament_of_Gabon property:country resource:Gabon }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q3516658 Q2342494
USER
Which occupations are expressed in approximately 1 heraldic symbols and collectables ?
(c(Q3516658)|c(Q2342494),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
value 1
[[{'concept': 'Q3516658'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?b ) WHERE { VALUES ( ?x ) { ( ontology:Q3516658 ) ( ontology:Q2342494 ) } . ?h rdf:type ?x } GROUP BY ?q } . FILTER ( ?b = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
value 1
[[{'concept': 'heraldic symbol'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?b ) WHERE { VALUES ( ?x ) { ( ontology:heraldic_symbol ) ( ontology:collectable ) } . ?h rdf:type ?x } GROUP BY ?q } . FILTER ( ?b = 1 ) }
[]
occupation heraldic symbol collectable
Q170779 Q1250916 Q11900058
SYSTEM
Kassandra, warrior, explorer
Q1250916 Q11900058 Q843281 Q170779
(c(Q3516658)|c(Q2342494),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
value 1
[ANSWERS] are expressed in approximately 1 heraldic symbols and collectables
[[{'concept': 'Q3516658'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?b ) WHERE { VALUES ( ?x ) { ( ontology:Q3516658 ) ( ontology:Q2342494 ) } . ?h rdf:type ?x } GROUP BY ?q } . FILTER ( ?b = 1 ) }
warrior explorer hobo Kassandra
Kassandra, warrior and explorer are expressed in approximately 1 heraldic symbols and collectables
Kassandra warrior explorer
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
value 1
[[{'concept': 'heraldic symbol'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?b ) WHERE { VALUES ( ?x ) { ( ontology:heraldic_symbol ) ( ontology:collectable ) } . ?h rdf:type ?x } GROUP BY ?q } . FILTER ( ?b = 1 ) }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P101
Q12737077 Q43229 Q502895
USER
Which occupations do less number of organizations or people belong to than that occupation ?
(c(Q43229)|c(Q502895),P101,c(Q12737077))
[[{'concept': 'Q43229'}, {'concept': 'Q502895'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?r ) { ( ?z ) ( ?x ) } . ?r property:Q627436 ?y } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q528892 . ?x rdf:type ontology:Q502895 }
[[{'concept': 'organization'}, {'concept': 'common name'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?r ) { ( ?z ) ( ?x ) } . ?r property:field_of_work ?y } . ?z rdf:type ontology:organization . ?y rdf:type ontology:occupation . ?x rdf:type ontology:common_name }
[]
occupation organization common name
Comparative|More/Less|Mult. entity type|Clarification
Q1250916
SYSTEM
Did you mean warrior ?
(c(Q43229)|c(Q502895),P101,c(Q12737077))
[ANSWER]
[[{'concept': 'Q43229'}, {'concept': 'Q502895'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?r ) { ( ?z ) ( ?x ) } . ?r property:Q627436 ?y } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q528892 . ?x rdf:type ontology:Q502895 }
Did you mean warrior ?
warrior
[[{'concept': 'organization'}, {'concept': 'common name'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?r ) { ( ?z ) ( ?x ) } . ?r property:field_of_work ?y } . ?z rdf:type ontology:organization . ?y rdf:type ontology:occupation . ?x rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
USER
No, I meant explorer. Could you tell me the answer for that?
(c(Q43229)|c(Q502895),P101,c(Q12737077))
Q11900058
[[{'concept': 'Q43229'}, {'concept': 'Q502895'}], 'P101', {'concept': 'Q12737077'}]
[[{'concept': 'organization'}, {'concept': 'common name'}], 'field of work', {'concept': 'occupation'}]
[]
Q2259451 Q705908 Q2205972
SYSTEM
stage actor, agency agreement, stained-glass artist
Q652122 Q2259451 Q326358 Q705908 Q2205972 Q901 Q3387717 Q154549 Q2490358 Q15954519
(c(Q43229)|c(Q502895),P101,c(Q12737077))
[ANSWERS] less number of organizations or people belong to than that occupation
[[{'concept': 'Q43229'}, {'concept': 'Q502895'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { { { ?z property:Q627436 ?y } UNION { ?x property:Q627436 ?y } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q528892 . ?x rdf:type ontology:Q502895 }
sewing stage actor joiner agency agreement stained-glass artist scientist theatre director carpenter choreographer alchemist
Stage actor, agency agreement and stained-glass artist less number of organizations or people belong to than that occupation
stage actor agency agreement stained-glass artist
[[{'concept': 'organization'}, {'concept': 'common name'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { { { ?z property:field_of_work ?y } UNION { ?x property:field_of_work ?y } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:occupation . ?x rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q548320
P180
Q12737077 Q3305213 Q11060274
USER
Which occupations are expressed in around the same number of paintings or prints as friar ?
(c(Q3305213)|c(Q11060274),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q548320
relation P180
type Q3305213
type Q11060274
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?k ) WHERE { { ?l property:P180 ?b . ?b rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q3305213 } UNION { ?l property:P180 ?b . ?b rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q11060274 } } GROUP BY ?b } . FILTER ( ?k = ?y ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { ?w property:P180 resource:Q548320 . { { ?w rdf:type ontology:Q3305213 } UNION { ?w rdf:type ontology:Q11060274 } } } } }
friar
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action count
action filter_multi_types
action find_reverse
entity friar
relation depicts
type painting
type print
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?k ) WHERE { { ?l property:depicts ?b . ?b rdf:type ontology:occupation . ?l rdf:type ontology:painting } UNION { ?l property:depicts ?b . ?b rdf:type ontology:occupation . ?l rdf:type ontology:print } } GROUP BY ?b } . FILTER ( ?k = ?y ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { ?w property:depicts resource:friar . { { ?w rdf:type ontology:painting } UNION { ?w rdf:type ontology:print } } } } }
[]
occupation painting print
Q186360 Q242468 Q182436
SYSTEM
nurse, tailor, librarian
Q19754019 Q11957145 Q1934482 Q19937286 Q177220 Q1569439 Q16735601 Q37226 Q27621374 Q152355 Q1218776 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q1250916 Q4610556 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q47064 Q185196 Q328325 Q11900058 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q12902372 Q170790 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q2309900 Q805221 Q5371902 Q17126809 Q848550 Q386854 Q202648 Q1753370 Q107711 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q855855 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q19546 Q6116659 Q537575 Q20826540 Q715301 Q11338576 Q622630 Q3330547 Q3214532 Q15954519 Q2981922 Q29182 Q326358 Q5575361 Q1161133 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q54128 Q242468 Q45722 Q2596569 Q1234713 Q116 Q152002 Q1511216 Q16533 Q2412523 Q211423 Q965417 Q845929 Q774306 Q2276446 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q1627992 Q2309784 Q253567 Q3439798 Q1437754 Q5832280 Q1430627 Q154549 Q189290 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q765541 Q2011889 Q49476 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q373017 Q2180295 Q1294787 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q3305213)|c(Q11060274),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q548320
relation P180
type Q3305213
type Q11060274
[ANSWERS] are expressed in around the same number of paintings or prints as friar
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?k ) WHERE { { ?l property:P180 ?b . ?b rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q3305213 } UNION { ?l property:P180 ?b . ?b rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q11060274 } } GROUP BY ?b } . FILTER ( ?k = ?y ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { ?w property:P180 resource:Q548320 . { { ?w rdf:type ontology:Q3305213 } UNION { ?w rdf:type ontology:Q11060274 } } } } }
fiddler acrobat milkmaid worker singer sheep shearer florist teacher bear hunter cobbler arriero sewing executor astronaut cooper house painter organist double-bassist actor writer valet sex worker woman of letters ventriloquist amateur wrestler king of marksmen geographer Archbishop of Canterbury minister receptionist milkman coachman warrior model deacon wet nurse sailor clown spinner butcher military personnel midwife stonemason explorer civil servant sower abbé architect street musician nurse parson flautist mathematician mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic helmsman ballet dancer harpsichordist rescuer VOC Opperhoofd in Japan drummer referee curate firefighter dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja page friar hobo fishmonger recorder player laborer pope priestess gravedigger erudite comics artist boxer odalisque chronicler plowman alchemist American pioneer bishop joiner goatherd pedicure member of parliament bartender clogmaker peddler reaper condottiero canon discus thrower bassoonist mufti cowboy rabbi mime artist scientist harpist blacksmith mahout magistrate domestic worker tailor cardinal housekeeper theologian monarch pastor courtier judge matador goldsmith waterseller pretender surgeon domestic worker cook Kassandra embroiderer high-ranking civil servant in France exotic dancer lyricist plasterer gardener composer miller tightrope walker lady's maid sport cyclist apprentice King of France woodcutter lacemaker Snake charming carpenter officer baker knife grinder police officer guard Maid of honour kazasker madam archbishop boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric basketry mail carrier artisan bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
Nurse, tailor and librarian are expressed in around the same number of paintings or prints as friar
nurse tailor librarian
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action count
action filter_multi_types
action find_reverse
entity friar
relation depicts
type painting
type print
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?k ) WHERE { { ?l property:depicts ?b . ?b rdf:type ontology:occupation . ?l rdf:type ontology:painting } UNION { ?l property:depicts ?b . ?b rdf:type ontology:occupation . ?l rdf:type ontology:print } } GROUP BY ?b } . FILTER ( ?k = ?y ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { ?w property:depicts resource:friar . { { ?w rdf:type ontology:painting } UNION { ?w rdf:type ontology:print } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q843281
P180
Q12737077 Q3305213 Q11060274
USER
And also tell me about hobo?
(c(Q3305213)|c(Q11060274),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q843281
relation P180
type Q3305213
type Q11060274
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:Q3305213 ) ( ontology:Q11060274 ) } . ?h rdf:type ?w } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { ?f property:P180 resource:Q843281 . { { ?f rdf:type ontology:Q11060274 } UNION { ?f rdf:type ontology:Q3305213 } } } } . FILTER ( ?v = ?t ) }
hobo
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action count
action filter_multi_types
action find_reverse
entity hobo
relation depicts
type painting
type print
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:painting ) ( ontology:print ) } . ?h rdf:type ?w } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { ?f property:depicts resource:hobo . { { ?f rdf:type ontology:print } UNION { ?f rdf:type ontology:painting } } } } . FILTER ( ?v = ?t ) }
[]
occupation painting print
Q186360 Q242468 Q182436
SYSTEM
nurse, tailor, librarian
Q19754019 Q11957145 Q1934482 Q19937286 Q177220 Q1569439 Q16735601 Q37226 Q27621374 Q152355 Q1218776 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q1250916 Q4610556 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q47064 Q185196 Q328325 Q11900058 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q12902372 Q170790 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q2309900 Q805221 Q5371902 Q17126809 Q848550 Q386854 Q202648 Q1753370 Q107711 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q855855 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q19546 Q6116659 Q537575 Q20826540 Q715301 Q11338576 Q622630 Q3330547 Q3214532 Q15954519 Q2981922 Q29182 Q326358 Q5575361 Q1161133 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q54128 Q242468 Q45722 Q2596569 Q1234713 Q116 Q152002 Q1511216 Q16533 Q2412523 Q211423 Q965417 Q845929 Q774306 Q2276446 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q1627992 Q2309784 Q253567 Q3439798 Q1437754 Q5832280 Q1430627 Q154549 Q189290 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q765541 Q2011889 Q49476 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q373017 Q2180295 Q1294787 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q3305213)|c(Q11060274),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q843281
relation P180
type Q3305213
type Q11060274
[ANSWERS]
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:Q3305213 ) ( ontology:Q11060274 ) } . ?h rdf:type ?w } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { ?f property:P180 resource:Q843281 . { { ?f rdf:type ontology:Q11060274 } UNION { ?f rdf:type ontology:Q3305213 } } } } . FILTER ( ?v = ?t ) }
fiddler acrobat milkmaid worker singer sheep shearer florist teacher bear hunter cobbler arriero sewing executor astronaut cooper house painter organist double-bassist actor writer valet sex worker woman of letters ventriloquist amateur wrestler king of marksmen geographer Archbishop of Canterbury minister receptionist milkman coachman warrior model deacon wet nurse sailor clown spinner butcher military personnel midwife stonemason explorer civil servant sower abbé architect street musician nurse parson flautist mathematician mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic helmsman ballet dancer harpsichordist rescuer VOC Opperhoofd in Japan drummer referee curate firefighter dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja page friar hobo fishmonger recorder player laborer pope priestess gravedigger erudite comics artist boxer odalisque chronicler plowman alchemist American pioneer bishop joiner goatherd pedicure member of parliament bartender clogmaker peddler reaper condottiero canon discus thrower bassoonist mufti cowboy rabbi mime artist scientist harpist blacksmith mahout magistrate domestic worker tailor cardinal housekeeper theologian monarch pastor courtier judge matador goldsmith waterseller pretender surgeon domestic worker cook Kassandra embroiderer high-ranking civil servant in France exotic dancer lyricist plasterer gardener composer miller tightrope walker lady's maid sport cyclist apprentice King of France woodcutter lacemaker Snake charming carpenter officer baker knife grinder police officer guard Maid of honour kazasker madam archbishop boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric basketry mail carrier artisan bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
nurse tailor librarian
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action count
action filter_multi_types
action find_reverse
entity hobo
relation depicts
type painting
type print
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:painting ) ( ontology:print ) } . ?h rdf:type ?w } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { ?f property:depicts resource:hobo . { { ?f rdf:type ontology:print } UNION { ?f rdf:type ontology:painting } } } } . FILTER ( ?v = ?t ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q170779
P674
Q838948
USER
Which works of art are Kassandra a character of ?
(c(Q838948),P674,Q170779)
action filter_type
action find_reverse
entity Q170779
relation P674
type Q838948
[{'concept': 'Q838948'}, 'P674', 'Q170779']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q838948 . ?c property:P674 resource:Q170779 }
Kassandra
action filter_type
action find_reverse
entity Kassandra
relation characters
type work of art
[{'concept': 'work of art'}, 'characters', 'Kassandra']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:work_of_art . ?c property:characters resource:Kassandra }
[]
work of art
Q1216943 Q3320792
SYSTEM
The Trojan Women, Agamemnon
Q1216943 Q3320792
(c(Q838948),P674,Q170779)
action filter_type
action find_reverse
entity Q170779
relation P674
type Q838948
[ANSWERS] are Kassandra a character of
[{'concept': 'Q838948'}, 'P674', 'Q170779']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q838948 . ?c property:P674 resource:Q170779 }
The Trojan Women Agamemnon
The Trojan Women and Agamemnon are Kassandra a character of
The Trojan Women Agamemnon
action filter_type
action find_reverse
entity Kassandra
relation characters
type work of art
[{'concept': 'work of art'}, 'characters', 'Kassandra']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:work_of_art . ?c property:characters resource:Kassandra }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q170779
P21
Q290
USER
Which sex does that occupation have ?
(Q1216943,P21,c(Q290)) (Q3320792,P21,c(Q290))
action filter_type
action find
entity Q170779
relation P21
type Q290
['Q1216943', 'P21', {'concept': 'Q290'}] ['Q3320792', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q290 . resource:Q170779 property:P21 ?o }
Kassandra
action filter_type
action find
entity Kassandra
relation gender
type sex
['The Trojan Women', 'gender', {'concept': 'sex'}] ['Agamemnon', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sex . resource:Kassandra property:gender ?o }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q1216943,P21,c(Q290)) (Q3320792,P21,c(Q290))
action filter_type
action find
entity Q170779
relation P21
type Q290
That occupation has a [ANSWER]
['Q1216943', 'P21', {'concept': 'Q290'}] ['Q3320792', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q290 . resource:Q170779 property:P21 ?o }
female
That occupation has a female
female
action filter_type
action find
entity Kassandra
relation gender
type sex
['The Trojan Women', 'gender', {'concept': 'sex'}] ['Agamemnon', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sex . resource:Kassandra property:gender ?o }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P21
Q43577 Q16521
USER
How many cat breeds and taxons are a that sex ?
(c(Q43577),P21,Q6581072) (c(Q16521),P21,Q6581072) (c(Q43577),P21,Q6581072) (c(Q16521),P21,Q6581072)
action count
action union
action filter_type
action find_reverse
entity Q6581072
relation P21
type Q43577
action filter_type
action find_reverse
entity Q6581072
relation P21
type Q16521
[{'concept': 'Q43577'}, 'P21', 'Q6581072'] [{'concept': 'Q16521'}, 'P21', 'Q6581072'] [{'concept': 'Q43577'}, 'P21', 'Q6581072'] [{'concept': 'Q16521'}, 'P21', 'Q6581072']
SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { { ?c property:P21 resource:Q6581072 . ?c rdf:type ontology:Q16521 } UNION { ?c rdf:type ontology:Q43577 . ?c property:P21 resource:Q6581072 } }
action count
action union
action filter_type
action find_reverse
entity female
relation gender
type cat breed
action filter_type
action find_reverse
entity female
relation gender
type taxon
[{'concept': 'cat breed'}, 'gender', 'female'] [{'concept': 'taxon'}, 'gender', 'female'] [{'concept': 'cat breed'}, 'gender', 'female'] [{'concept': 'taxon'}, 'gender', 'female']
SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { { ?c property:gender resource:female . ?c rdf:type ontology:taxon } UNION { ?c rdf:type ontology:cat_breed . ?c property:gender resource:female } }
[]
cat breed taxon
SYSTEM
1 cat breeds and 14 taxons
Q7630348 Q16411365 Q15263107 Q16481571 Q7270702 Q6179133 Q1385709 Q7714263 Q14832020 Q2665317 Q4843154 Q4696473 Q6842208 Q5613160 Q18535182
(c(Q43577),P21,Q6581072) (c(Q16521),P21,Q6581072) (c(Q43577),P21,Q6581072) (c(Q16521),P21,Q6581072)
action count
action union
action filter_type
action find_reverse
entity Q6581072
relation P21
type Q43577
action filter_type
action find_reverse
entity Q6581072
relation P21
type Q16521
[ANSWER]
[{'concept': 'Q43577'}, 'P21', 'Q6581072'] [{'concept': 'Q16521'}, 'P21', 'Q6581072'] [{'concept': 'Q43577'}, 'P21', 'Q6581072'] [{'concept': 'Q16521'}, 'P21', 'Q6581072']
SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { { ?c property:P21 resource:Q6581072 . ?c rdf:type ontology:Q16521 } UNION { ?c rdf:type ontology:Q43577 . ?c property:P21 resource:Q6581072 } }
Su Lin Brita Yuan Zai Imperia Queenie Jenny Seedling Grumpy Cat Lil Bub River Song Bai Yun Ai Midge the Sea Lion Gua Punkin
1 cat breeds and 14 taxons
action count
action union
action filter_type
action find_reverse
entity female
relation gender
type cat breed
action filter_type
action find_reverse
entity female
relation gender
type taxon
[{'concept': 'cat breed'}, 'gender', 'female'] [{'concept': 'taxon'}, 'gender', 'female'] [{'concept': 'cat breed'}, 'gender', 'female'] [{'concept': 'taxon'}, 'gender', 'female']
SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { { ?c property:gender resource:female . ?c rdf:type ontology:taxon } UNION { ?c rdf:type ontology:cat_breed . ?c property:gender resource:female } }
[]