Simple Question (Direct)
Simple Question
Q1701384
P39
Q12737077
USER
What were the positions held by John Pendleton ?
(Q1701384,P39,c(Q12737077))
action filter_type
action find
entity Q1701384
relation P39
type Q12737077
['Q1701384', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q1701384 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
John Pendleton
action filter_type
action find
entity John Pendleton
relation position held
type occupation
['John Pendleton', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:John_Pendleton property:position_held ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q13218630 Q18694588
SYSTEM
United States representative, Member of the United States House of Representatives from Virginia
Q13218630 Q18694588
(Q1701384,P39,c(Q12737077))
action filter_type
action find
entity Q1701384
relation P39
type Q12737077
The positions held by John Pendleton were [ANSWERS]
['Q1701384', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q1701384 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
United States representative Member of the United States House of Representatives from Virginia
The positions held by John Pendleton were United States representative and Member of the United States House of Representatives from Virginia
United States representative Member of the United States House of Representatives from Virginia
action filter_type
action find
entity John Pendleton
relation position held
type occupation
['John Pendleton', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:John_Pendleton property:position_held ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1701384
P106
Q12737077
USER
Which occupations have John Pendleton as his/her 's career ?
(Q1701384,P106,c(Q12737077))
action filter_type
action find
entity Q1701384
relation P106
type Q12737077
['Q1701384', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q1701384 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
John Pendleton
action filter_type
action find
entity John Pendleton
relation occupation
type occupation
['John Pendleton', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:John_Pendleton property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q193391 Q82955
SYSTEM
diplomat, politician
Q193391 Q82955
(Q1701384,P106,c(Q12737077))
action filter_type
action find
entity Q1701384
relation P106
type Q12737077
The [ANSWERS] have John Pendleton as his/her 's career
['Q1701384', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q1701384 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
diplomat politician
The diplomat and politician have John Pendleton as his/her 's career
diplomat politician
action filter_type
action find
entity John Pendleton
relation occupation
type occupation
['John Pendleton', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:John_Pendleton property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q841690
Q12737077
USER
And also tell me about Daisuke Inoue?
(Q841690,P106,c(Q12737077))
action filter_type
action find
entity Q841690
relation P106
type Q12737077
['Q841690', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q841690 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Daisuke Inoue
action filter_type
action find
entity Daisuke Inoue
relation occupation
type occupation
['Daisuke Inoue', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Daisuke_Inoue property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q205375 Q131524
SYSTEM
inventor, entrepreneur
Q205375 Q131524
(Q841690,P106,c(Q12737077))
action filter_type
action find
entity Q841690
relation P106
type Q12737077
[ANSWERS]
['Q841690', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q841690 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
inventor entrepreneur
inventor entrepreneur
action filter_type
action find
entity Daisuke Inoue
relation occupation
type occupation
['Daisuke Inoue', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Daisuke_Inoue property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q982831
P106
Q502895
USER
Do Henry J. Heinz have those occupations as his/her means of employment ?
(Q982831,P106,Q205375) (Q982831,P106,Q131524)
action is_in
entity prev_answer
action find
entity Q982831
relation P106
['Q982831', 'P106', 'Q205375'] ['Q982831', 'P106', 'Q131524']
ASK WHERE { resource:Q982831 property:P106 ?a . VALUES ( ?a ) { ( resource:Q205375 ) ( resource:Q131524 ) } }
Henry J. Heinz
action is_in
entity prev_answer
action find
entity Henry J. Heinz
relation occupation
['Henry J. Heinz', 'occupation', 'inventor'] ['Henry J. Heinz', 'occupation', 'entrepreneur']
ASK WHERE { resource:Henry_J._Heinz property:occupation ?a . VALUES ( ?a ) { ( resource:inventor ) ( resource:entrepreneur ) } }
[]
common name
SYSTEM
YES
(Q982831,P106,Q205375) (Q982831,P106,Q131524)
action is_in
entity prev_answer
action find
entity Q982831
relation P106
[ANSWER]
['Q982831', 'P106', 'Q205375'] ['Q982831', 'P106', 'Q131524']
ASK WHERE { resource:Q982831 property:P106 ?a . VALUES ( ?a ) { ( resource:Q205375 ) ( resource:Q131524 ) } }
Yes
action is_in
entity prev_answer
action find
entity Henry J. Heinz
relation occupation
['Henry J. Heinz', 'occupation', 'inventor'] ['Henry J. Heinz', 'occupation', 'entrepreneur']
ASK WHERE { resource:Henry_J._Heinz property:occupation ?a . VALUES ( ?a ) { ( resource:inventor ) ( resource:entrepreneur ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q13218630 Q533504 Q10222
P1001
Q15617994
USER
Does United States representative have jurisdiction over Wesselburenerkoog and Rivalta di Torino ?
(Q13218630,P1001,Q533504) (Q13218630,P1001,Q10222)
action is_in
entity Q13218630
action intersection
action find_reverse
entity Q533504
relation P1001
action find_reverse
entity Q10222
relation P1001
['Q13218630', 'P1001', 'Q533504'] ['Q13218630', 'P1001', 'Q10222']
ASK WHERE { resource:Q13218630 property:P1001 resource:Q533504 . resource:Q13218630 property:P1001 resource:Q10222 }
United States representative Wesselburenerkoog Rivalta di Torino
action is_in
entity United States representative
action intersection
action find_reverse
entity Wesselburenerkoog
relation applies to jurisdiction
action find_reverse
entity Rivalta di Torino
relation applies to jurisdiction
['United States representative', 'applies to jurisdiction', 'Wesselburenerkoog'] ['United States representative', 'applies to jurisdiction', 'Rivalta di Torino']
ASK WHERE { resource:United_States_representative property:applies_to_jurisdiction resource:Wesselburenerkoog . resource:United_States_representative property:applies_to_jurisdiction resource:Rivalta_di_Torino }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q13218630,P1001,Q533504) (Q13218630,P1001,Q10222)
action is_in
entity Q13218630
action intersection
action find_reverse
entity Q533504
relation P1001
action find_reverse
entity Q10222
relation P1001
[ANSWER]
['Q13218630', 'P1001', 'Q533504'] ['Q13218630', 'P1001', 'Q10222']
ASK WHERE { resource:Q13218630 property:P1001 resource:Q533504 . resource:Q13218630 property:P1001 resource:Q10222 }
No
action is_in
entity United States representative
action intersection
action find_reverse
entity Wesselburenerkoog
relation applies to jurisdiction
action find_reverse
entity Rivalta di Torino
relation applies to jurisdiction
['United States representative', 'applies to jurisdiction', 'Wesselburenerkoog'] ['United States representative', 'applies to jurisdiction', 'Rivalta di Torino']
ASK WHERE { resource:United_States_representative property:applies_to_jurisdiction resource:Wesselburenerkoog . resource:United_States_representative property:applies_to_jurisdiction resource:Rivalta_di_Torino }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1139055
P180
Q12737077 Q3305213 Q17638008
USER
Which occupations are expressed in lesser number of paintings and game equipment than tax collector ?
(c(Q3305213)|c(Q17638008),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q1139055
relation P180
type Q3305213
type Q17638008
[[{'concept': 'Q3305213'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) ?l WHERE { { ?h property:P180 ?l . ?l rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q3305213 } UNION { ?h property:P180 ?l . ?l rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q17638008 } } GROUP BY ?l } . FILTER ( ?a < ?x ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { { { ?c rdf:type ontology:Q3305213 } UNION { ?c rdf:type ontology:Q17638008 } } . ?c property:P180 resource:Q1139055 } } }
tax collector
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity tax collector
relation depicts
type painting
type game equipment
[[{'concept': 'painting'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) ?l WHERE { { ?h property:depicts ?l . ?l rdf:type ontology:occupation . ?h rdf:type ontology:painting } UNION { ?h property:depicts ?l . ?l rdf:type ontology:occupation . ?h rdf:type ontology:game_equipment } } GROUP BY ?l } . FILTER ( ?a < ?x ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { { { ?c rdf:type ontology:painting } UNION { ?c rdf:type ontology:game_equipment } } . ?c property:depicts resource:tax_collector } } }
[]
occupation painting game equipment
Q186360 Q242468 Q182436
SYSTEM
nurse, tailor, librarian
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 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 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q54128 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 Q1511216 Q16533 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q1627992 Q2309784 Q253567 Q3439798 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 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(Q17638008),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q1139055
relation P180
type Q3305213
type Q17638008
The [ANSWERS] are expressed in lesser number of paintings and game equipment than tax collector
[[{'concept': 'Q3305213'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) ?l WHERE { { ?h property:P180 ?l . ?l rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q3305213 } UNION { ?h property:P180 ?l . ?l rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q17638008 } } GROUP BY ?l } . FILTER ( ?a < ?x ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { { { ?c rdf:type ontology:Q3305213 } UNION { ?c rdf:type ontology:Q17638008 } } . ?c property:P180 resource:Q1139055 } } }
fiddler acrobat milkmaid worker standard-bearer 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 courtesan 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 courier monarch salt pan worker porter pastor courtier judge matador goldsmith waterseller pretender astronomer 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 school teacher 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
The nurse, tailor and librarian are expressed in lesser number of paintings and game equipment than tax collector
nurse tailor librarian
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity tax collector
relation depicts
type painting
type game equipment
[[{'concept': 'painting'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) ?l WHERE { { ?h property:depicts ?l . ?l rdf:type ontology:occupation . ?h rdf:type ontology:painting } UNION { ?h property:depicts ?l . ?l rdf:type ontology:occupation . ?h rdf:type ontology:game_equipment } } GROUP BY ?l } . FILTER ( ?a < ?x ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { { { ?c rdf:type ontology:painting } UNION { ?c rdf:type ontology:game_equipment } } . ?c property:depicts resource:tax_collector } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q842782
P180
Q12737077 Q3305213 Q17638008
USER
And what about detective?
(c(Q3305213)|c(Q17638008),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q842782
relation P180
type Q3305213
type Q17638008
[[{'concept': 'Q3305213'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?q ) WHERE { VALUES ( ?b ) { ( ontology:Q3305213 ) ( ontology:Q17638008 ) } . ?r rdf:type ?b } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:P180 resource:Q842782 . { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:Q3305213 ) ( ontology:Q17638008 ) } } } } . FILTER ( ?q < ?h ) }
detective
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity detective
relation depicts
type painting
type game equipment
[[{'concept': 'painting'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?q ) WHERE { VALUES ( ?b ) { ( ontology:painting ) ( ontology:game_equipment ) } . ?r rdf:type ?b } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:depicts resource:detective . { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:painting ) ( ontology:game_equipment ) } } } } . FILTER ( ?q < ?h ) }
[]
occupation painting game equipment
Q186360 Q242468 Q182436
SYSTEM
nurse, tailor, librarian
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 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 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q54128 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 Q1511216 Q16533 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q1627992 Q2309784 Q253567 Q3439798 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 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(Q17638008),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q842782
relation P180
type Q3305213
type Q17638008
[ANSWERS]
[[{'concept': 'Q3305213'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?q ) WHERE { VALUES ( ?b ) { ( ontology:Q3305213 ) ( ontology:Q17638008 ) } . ?r rdf:type ?b } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:P180 resource:Q842782 . { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:Q3305213 ) ( ontology:Q17638008 ) } } } } . FILTER ( ?q < ?h ) }
fiddler acrobat milkmaid worker standard-bearer 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 courtesan 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 courier monarch salt pan worker porter pastor courtier judge matador goldsmith waterseller pretender astronomer 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 school teacher 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 less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity detective
relation depicts
type painting
type game equipment
[[{'concept': 'painting'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?q ) WHERE { VALUES ( ?b ) { ( ontology:painting ) ( ontology:game_equipment ) } . ?r rdf:type ?b } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:depicts resource:detective . { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:painting ) ( ontology:game_equipment ) } } } } . FILTER ( ?q < ?h ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q1307214 Q12737077 Q12737077
USER
How many occupations did atleast 1 forms of government or occupations appoint ?
(c(Q12737077),P748,c(Q1307214)|c(Q12737077))
action count
action atleast
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1307214'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?u ) WHERE { VALUES ( ?x ) { ( ontology:Q12737077 ) ( ontology:Q1307214 ) } . ?k rdf:type ?x } GROUP BY ?g } . FILTER ( ?u >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation appointed by
type occupation
type form of government
action find_tuple_counts
relation appointed by
type occupation
type occupation
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'form of government'}, {'concept': 'occupation'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?u ) WHERE { VALUES ( ?x ) { ( ontology:occupation ) ( ontology:form_of_government ) } . ?k rdf:type ?x } GROUP BY ?g } . FILTER ( ?u >= 1 ) }
[]
form of government occupation occupation
SYSTEM
124
Q15934457 Q748607 Q3253692 Q192711 Q6865816 Q6865958 Q3251824 Q1355456 Q1507619 Q737115 Q6578215 Q1146214 Q23906787 Q6866004 Q4377222 Q15304810 Q1511951 Q191827 Q910308 Q1753754 Q1476458 Q15407843 Q20736121 Q19190022 Q3251837 Q6865747 Q943379 Q1749063 Q24636364 Q14565638 Q251724 Q6572133 Q1006398 Q6865770 Q274948 Q1723031 Q369500 Q13527950 Q3315120 Q6866468 Q313465 Q15971570 Q1430943 Q3556884 Q1655971 Q12270252 Q1571023 Q1339242 Q796897 Q1550276 Q208487 Q4294939 Q6866295 Q583809 Q4377230 Q7240361 Q5195495 Q27088842 Q2560704 Q3251821 Q3251819 Q4294945 Q3564227 Q6866264 Q6865750 Q7240360 Q2962001 Q16933549 Q18694351 Q45369 Q1195049 Q6865853 Q687075 Q3251775 Q1587677 Q839078 Q3251779 Q2911019 Q2430415 Q6866194 Q3251793 Q1192903 Q6865904 Q2741479 Q213107 Q6123144 Q3401758 Q7240356 Q6865864 Q13527909 Q3315114 Q11895063 Q1469153 Q12270260 Q6865789 Q1195270 Q6865781 Q7013201 Q2505890 Q6865756 Q16009376 Q3251800 Q3259469 Q162754 Q5097071 Q6865981 Q217217 Q3251807 Q13526082 Q6866016 Q1281611 Q1790154 Q6866422 Q3251818 Q6866427 Q6865902 Q738695 Q1752225 Q687908 Q844587 Q20877172 Q2334076 Q541355 Q702650
(c(Q12737077),P748,c(Q1307214)|c(Q12737077))
action count
action atleast
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
value 1
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1307214'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?u ) WHERE { VALUES ( ?x ) { ( ontology:Q12737077 ) ( ontology:Q1307214 ) } . ?k rdf:type ?x } GROUP BY ?g } . FILTER ( ?u >= 1 ) }
Minister of Transport Minister of International Trade President of the Treasury Board Prime Minister of India Minister for Education and Skills Minister for Social Protection Minister of Natural Resources Lord Chamberlain Deputy Prime Minister of the United Kingdom Prime Minister of Estonia Premier of Saskatchewan Tánaiste Bishop of Nevers Minister for the Environment, Community and Local Government Premier of Nunavut Prime Minister of Romania Prime Minister of South Africa Taoiseach Lord Privy Seal Master of the Rolls European Commissioner for the Environment Prime Minister of South Korea Bishop of Versailles Prime Minister of Iceland Minister of Canadian Heritage Minister for Arts, Heritage and the Gaeltacht Lord President of the Council Minister for Foreign Affairs of Sweden bishop of Nanjing Prime Minister of Bangladesh Chief Secretary for Ireland Governor of İstanbul Federal Chancellor of Austria Minister for Communications, Energy and Natural Resources Prime Minister of Japan Prime Minister of Portugal Prime Minister of Latvia Premier of New South Wales Minister of Justice Minister responsible for the Status of Women Minister of External Affairs President of the Generalitat Valenciana Prime Minister of Jamaica Deputy Prime Minister of Canada Minister of State Premier of New Brunswick Governor of Victoria Chief Justice of Canada Prime Minister of Italy Premier of Western Australia Prime Minister of Israel Minister of Agriculture Minister of Public Services and Procurement Solicitor General for England and Wales Prime Minister of Greece Premier of Prince Edward Island Minister of Economy and Finance of Peru Director of the Holy See Press Office Premier of Ontario Minister of Transport Minister of Fisheries and Oceans Minister for Finance Auditor General of Canada Minister of National Revenue Minister for Agriculture, Food and the Marine Premier of Nova Scotia Chief of the Defence Staff President of the Generalitat of Catalonia Minister of Communications Prime Minister of Slovakia Minister of Aboriginal Affairs and Northern Development Minister for Foreign Affairs and Trade Prime Minister of Sweden Minister of the Environment Prime Minister of France Prime Minister of Canada Minister of Industry Premier of Quebec Prime Minister of Turkey Minister of Human Resources and Skills Development Minister of Citizenship and Immigration Prime Minister of Yemen Minister for Justice and Equality Chief Executive of Macau Prime Minister of Belgium Secretary of State of Puerto Rico Premier of Manitoba Premier of Newfoundland and Labrador Minister for Health Premier of Victoria Minister of National Defence Minister of Transport and Communications Prime Minister of Fiji Premier of Yukon Minister for Democratic Reform Prime Minister of Croatia Minister for Defence New York City Fire Commissioner Leader of the Government in the House of Commons Minister for Children and Youth Affairs Prime Minister of Albania Minister of Health Prime Minister of Poland Chancellor of the Duchy of Lancaster Chief of the Secret Intelligence Service Minister for Transport, Tourism and Sport Lord Chancellor Minister of Veterans Affairs Premier of Queensland Minister for the purposes of the Atlantic Canada Opportunities Agency Act Lieutenant Governor of Jersey Chief Minister of Delhi Minister of Western Economic Diversification Minister of Finance Minister of the Economic Development Agency of Canada for the Regions of Quebec Minister for Jobs, Enterprise and Innovation Prime Minister of Finland Lord Lieutenant of Ireland Lord Chief Justice of England and Wales Prime Minister of Spain bishop of Amiens Prime Minister of Norway Minister of Foreign Affairs of Canada President of the Executive Yuan
124
action count
action atleast
action union
action find_tuple_counts
relation appointed by
type occupation
type form of government
action find_tuple_counts
relation appointed by
type occupation
type occupation
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'form of government'}, {'concept': 'occupation'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?u ) WHERE { VALUES ( ?x ) { ( ontology:occupation ) ( ontology:form_of_government ) } . ?k rdf:type ?x } GROUP BY ?g } . FILTER ( ?u >= 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q83307
P921
Q12737077 Q2342494 Q191067
USER
Which occupations were discussed in more number of collectables or articles than minister ?
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q83307
relation P921
type Q2342494
type Q191067
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?v ) WHERE { { ?o property:P921 ?j . ?o rdf:type ontology:Q2342494 . ?j rdf:type ontology:Q12737077 } UNION { ?o property:P921 ?j . ?j rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q191067 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { ?t rdf:type ?i . VALUES ( ?i ) { ( ontology:Q2342494 ) ( ontology:Q191067 ) } } . ?t property:P921 resource:Q83307 } } . FILTER ( ?v > ?b ) }
minister
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action count
action filter_multi_types
action find_reverse
entity minister
relation main subject
type collectable
type article
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?v ) WHERE { { ?o property:main_subject ?j . ?o rdf:type ontology:collectable . ?j rdf:type ontology:occupation } UNION { ?o property:main_subject ?j . ?j rdf:type ontology:occupation . ?o rdf:type ontology:article } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { ?t rdf:type ?i . VALUES ( ?i ) { ( ontology:collectable ) ( ontology:article ) } } . ?t property:main_subject resource:minister } } . FILTER ( ?v > ?b ) }
[]
occupation collectable article
Q937857 Q16746569 Q39631
SYSTEM
association football player, high school student, physician
Q39631 Q11631 Q937857 Q16746569
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q83307
relation P921
type Q2342494
type Q191067
Teams [ANSWERS] were discussed in more number of collectables or articles than minister
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?v ) WHERE { { ?o property:P921 ?j . ?o rdf:type ontology:Q2342494 . ?j rdf:type ontology:Q12737077 } UNION { ?o property:P921 ?j . ?j rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q191067 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { ?t rdf:type ?i . VALUES ( ?i ) { ( ontology:Q2342494 ) ( ontology:Q191067 ) } } . ?t property:P921 resource:Q83307 } } . FILTER ( ?v > ?b ) }
physician astronaut association football player high school student
Teams association football player, high school student and physician were discussed in more number of collectables or articles than minister
association football player high school student physician
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action count
action filter_multi_types
action find_reverse
entity minister
relation main subject
type collectable
type article
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?v ) WHERE { { ?o property:main_subject ?j . ?o rdf:type ontology:collectable . ?j rdf:type ontology:occupation } UNION { ?o property:main_subject ?j . ?j rdf:type ontology:occupation . ?o rdf:type ontology:article } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { ?t rdf:type ?i . VALUES ( ?i ) { ( ontology:collectable ) ( ontology:article ) } } . ?t property:main_subject resource:minister } } . FILTER ( ?v > ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q2961580
P921
Q12737077 Q2342494 Q191067
USER
And how about taxi driver?
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q2961580
relation P921
type Q2342494
type Q191067
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?e ) AS ?a ) WHERE { { ?e property:P921 ?h . ?h rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q2342494 } UNION { ?e property:P921 ?h . ?h rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q191067 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:P921 resource:Q2961580 . { ?p rdf:type ?u . VALUES ( ?u ) { ( ontology:Q2342494 ) ( ontology:Q191067 ) } } } } . FILTER ( ?a > ?o ) }
taxi driver
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action count
action filter_multi_types
action find_reverse
entity taxi driver
relation main subject
type collectable
type article
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?e ) AS ?a ) WHERE { { ?e property:main_subject ?h . ?h rdf:type ontology:occupation . ?e rdf:type ontology:collectable } UNION { ?e property:main_subject ?h . ?h rdf:type ontology:occupation . ?e rdf:type ontology:article } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:main_subject resource:taxi_driver . { ?p rdf:type ?u . VALUES ( ?u ) { ( ontology:collectable ) ( ontology:article ) } } } } . FILTER ( ?a > ?o ) }
[]
occupation collectable article
Q316070 Q182436 Q42973
SYSTEM
Fletcher Christian, librarian, architect
Q172907 Q39631 Q11631 Q774306 Q83307 Q4610556 Q18145518 Q82955 Q730242 Q42973 Q937857 Q9402 Q43845 Q316070 Q29182 Q510373 Q131524 Q14373094 Q152002 Q18220900 Q16746569 Q16003605 Q732358 Q49757 Q1238570 Q182436 Q2259532
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q2961580
relation P921
type Q2342494
type Q191067
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?e ) AS ?a ) WHERE { { ?e property:P921 ?h . ?h rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q2342494 } UNION { ?e property:P921 ?h . ?h rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q191067 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:P921 resource:Q2961580 . { ?p rdf:type ?u . VALUES ( ?u ) { ( ontology:Q2342494 ) ( ontology:Q191067 ) } } } } . FILTER ( ?a > ?o ) }
praetor physician astronaut surgeon minister model Member of the New Zealand House of Representatives politician test pilot architect association football player ninja businessperson Fletcher Christian bishop Lord High Steward entrepreneur rugby league player pastor Member of the South Australian House of Assembly high school student elementary school student Nomarch poet political scientist librarian cleric
Fletcher Christian librarian architect
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action count
action filter_multi_types
action find_reverse
entity taxi driver
relation main subject
type collectable
type article
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?e ) AS ?a ) WHERE { { ?e property:main_subject ?h . ?h rdf:type ontology:occupation . ?e rdf:type ontology:collectable } UNION { ?e property:main_subject ?h . ?h rdf:type ontology:occupation . ?e rdf:type ontology:article } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:main_subject resource:taxi_driver . { ?p rdf:type ?u . VALUES ( ?u ) { ( ontology:collectable ) ( ontology:article ) } } } } . FILTER ( ?a > ?o ) }
[]