Simple Question (Direct)
Simple Question
Q6761446
P21
Q290
USER
Which sex does Maria Mutagamba possess ?
(Q6761446,P21,c(Q290))
action filter_type
action find
entity Q6761446
relation P21
type Q290
['Q6761446', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q6761446 property:P21 ?f . ?f rdf:type ontology:Q290 }
Maria Mutagamba
action filter_type
action find
entity Maria Mutagamba
relation gender
type sex
['Maria Mutagamba', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Maria_Mutagamba property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q6761446,P21,c(Q290))
action filter_type
action find
entity Q6761446
relation P21
type Q290
Maria Mutagamba possesses a [ANSWER]
['Q6761446', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q6761446 property:P21 ?f . ?f rdf:type ontology:Q290 }
female
Maria Mutagamba possesses a female
female
action filter_type
action find
entity Maria Mutagamba
relation gender
type sex
['Maria Mutagamba', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Maria_Mutagamba property:gender ?f . ?f rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6761446
P106
Q12737077
USER
What are the job of that person ?
(Q6581072,P106,c(Q12737077))
action filter_type
action find
entity Q6761446
relation P106
type Q12737077
['Q6581072', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q6761446 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
Maria Mutagamba
action filter_type
action find
entity Maria Mutagamba
relation occupation
type occupation
['female', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Maria_Mutagamba property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q188094 Q82955
SYSTEM
economist, politician
Q188094 Q82955
(Q6581072,P106,c(Q12737077))
action filter_type
action find
entity Q6761446
relation P106
type Q12737077
The job of that person are an [ANSWERS]
['Q6581072', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q6761446 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
economist politician
The job of that person are an economist and politician
economist politician
action filter_type
action find
entity Maria Mutagamba
relation occupation
type occupation
['female', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Maria_Mutagamba property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4834035
P106
Q502895
USER
Do B. J. LaMura have a job as those occupations ?
(Q4834035,P106,Q188094) (Q4834035,P106,Q82955)
action is_in
entity prev_answer
action find
entity Q4834035
relation P106
['Q4834035', 'P106', 'Q188094'] ['Q4834035', 'P106', 'Q82955']
ASK WHERE { VALUES ( ?u ) { ( resource:Q188094 ) ( resource:Q82955 ) } . resource:Q4834035 property:P106 ?u }
B. J. LaMura
action is_in
entity prev_answer
action find
entity B. J. LaMura
relation occupation
['B. J. LaMura', 'occupation', 'economist'] ['B. J. LaMura', 'occupation', 'politician']
ASK WHERE { VALUES ( ?u ) { ( resource:economist ) ( resource:politician ) } . resource:B._J._LaMura property:occupation ?u }
[]
common name
SYSTEM
NO
(Q4834035,P106,Q188094) (Q4834035,P106,Q82955)
action is_in
entity prev_answer
action find
entity Q4834035
relation P106
[ANSWER]
['Q4834035', 'P106', 'Q188094'] ['Q4834035', 'P106', 'Q82955']
ASK WHERE { VALUES ( ?u ) { ( resource:Q188094 ) ( resource:Q82955 ) } . resource:Q4834035 property:P106 ?u }
No
action is_in
entity prev_answer
action find
entity B. J. LaMura
relation occupation
['B. J. LaMura', 'occupation', 'economist'] ['B. J. LaMura', 'occupation', 'politician']
ASK WHERE { VALUES ( ?u ) { ( resource:economist ) ( resource:politician ) } . resource:B._J._LaMura property:occupation ?u }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q6581072 Q4
P180
Q340169
USER
How many medias express female or death ?
(c(Q340169),P180,Q6581072) (c(Q340169),P180,Q4)
action count
action union
action filter_type
action find_reverse
entity Q6581072
relation P180
type Q340169
action filter_type
action find_reverse
entity Q4
relation P180
type Q340169
[{'concept': 'Q340169'}, 'P180', 'Q6581072'] [{'concept': 'Q340169'}, 'P180', 'Q4']
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h property:P180 ?x . VALUES ( ?x ) { ( resource:Q6581072 ) ( resource:Q4 ) } }
female death
action count
action union
action filter_type
action find_reverse
entity female
relation depicts
type media
action filter_type
action find_reverse
entity death
relation depicts
type media
[{'concept': 'media'}, 'depicts', 'female'] [{'concept': 'media'}, 'depicts', 'death']
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h property:depicts ?x . VALUES ( ?x ) { ( resource:female ) ( resource:death ) } }
[]
media
SYSTEM
2
Q20392044 Q20392046
(c(Q340169),P180,Q6581072) (c(Q340169),P180,Q4)
action count
action union
action filter_type
action find_reverse
entity Q6581072
relation P180
type Q340169
action filter_type
action find_reverse
entity Q4
relation P180
type Q340169
[ANSWER]
[{'concept': 'Q340169'}, 'P180', 'Q6581072'] [{'concept': 'Q340169'}, 'P180', 'Q4']
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h property:P180 ?x . VALUES ( ?x ) { ( resource:Q6581072 ) ( resource:Q4 ) } }
Lamentation over the Dead Christ The Death of Hippolytus
2
action count
action union
action filter_type
action find_reverse
entity female
relation depicts
type media
action filter_type
action find_reverse
entity death
relation depicts
type media
[{'concept': 'media'}, 'depicts', 'female'] [{'concept': 'media'}, 'depicts', 'death']
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h property:depicts ?x . VALUES ( ?x ) { ( resource:female ) ( resource:death ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6761446
P172
Q2472587
USER
What is the race of Maria Mutagamba ?
(Q6761446,P172,c(Q2472587))
action filter_type
action find
entity Q6761446
relation P172
type Q2472587
['Q6761446', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?j WHERE { resource:Q6761446 property:P172 ?j . ?j rdf:type ontology:Q2472587 }
Maria Mutagamba
action filter_type
action find
entity Maria Mutagamba
relation ethnic group
type people
['Maria Mutagamba', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?j WHERE { resource:Maria_Mutagamba property:ethnic_group ?j . ?j rdf:type ontology:people }
[]
people
Q403656
SYSTEM
Baganda
Q403656
(Q6761446,P172,c(Q2472587))
action filter_type
action find
entity Q6761446
relation P172
type Q2472587
The race of Maria Mutagamba is called [ANSWER]
['Q6761446', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?j WHERE { resource:Q6761446 property:P172 ?j . ?j rdf:type ontology:Q2472587 }
Baganda
The race of Maria Mutagamba is called Baganda
Baganda
action filter_type
action find
entity Maria Mutagamba
relation ethnic group
type people
['Maria Mutagamba', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?j WHERE { resource:Maria_Mutagamba property:ethnic_group ?j . ?j rdf:type ontology:people }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6761446
P27
Q15617994
USER
Which administrative territory is Maria Mutagamba an inhabitant of ?
(Q6761446,P27,c(Q15617994))
action filter_type
action find
entity Q6761446
relation P27
type Q15617994
['Q6761446', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q6761446 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Maria Mutagamba
action filter_type
action find
entity Maria Mutagamba
relation country of citizenship
type designation for an administrative territorial entity
['Maria Mutagamba', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Maria_Mutagamba property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1036
SYSTEM
Uganda
Q1036
(Q6761446,P27,c(Q15617994))
action filter_type
action find
entity Q6761446
relation P27
type Q15617994
[ANSWER] is Maria Mutagamba an inhabitant of
['Q6761446', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q6761446 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Uganda
Uganda is Maria Mutagamba an inhabitant of
Uganda
action filter_type
action find
entity Maria Mutagamba
relation country of citizenship
type designation for an administrative territorial entity
['Maria Mutagamba', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Maria_Mutagamba property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1036
P36
Q56061
USER
Which administrative territory is associated to that administrative territory as the capital ?
(Q1036,P36,c(Q56061))
action filter_type
action find
entity Q1036
relation P36
type Q56061
['Q1036', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q1036 property:P36 ?k . ?k rdf:type ontology:Q56061 }
Uganda
action filter_type
action find
entity Uganda
relation capital
type administrative territorial entity
['Uganda', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Uganda property:capital ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3894
SYSTEM
Kampala
Q3894
(Q1036,P36,c(Q56061))
action filter_type
action find
entity Q1036
relation P36
type Q56061
Capital [ANSWER] is associated to that administrative territory as the capital
['Q1036', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q1036 property:P36 ?k . ?k rdf:type ontology:Q56061 }
Kampala
Capital Kampala is associated to that administrative territory as the capital
Kampala
action filter_type
action find
entity Uganda
relation capital
type administrative territorial entity
['Uganda', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Uganda property:capital ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q42603
P180
Q12737077 Q3305213 Q838948
USER
How many occupations are demonstrated in lesser number of paintings or works of art than priest ?
(c(Q3305213)|c(Q838948),P180,c(Q12737077))
action count
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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q42603
relation P180
type Q3305213
type Q838948
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?w ) WHERE { { ?m property:P180 ?g . ?g rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q3305213 } UNION { ?g rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q838948 . ?m property:P180 ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { ?u property:P180 resource:Q42603 . { { ?u rdf:type ontology:Q3305213 } UNION { ?u rdf:type ontology:Q838948 } } } } . FILTER ( ?w < ?z ) }
priest
action count
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 work of art
action count
action filter_multi_types
action find_reverse
entity priest
relation depicts
type painting
type work of art
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?w ) WHERE { { ?m property:depicts ?g . ?g rdf:type ontology:occupation . ?m rdf:type ontology:painting } UNION { ?g rdf:type ontology:occupation . ?m rdf:type ontology:work_of_art . ?m property:depicts ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { ?u property:depicts resource:priest . { { ?u rdf:type ontology:painting } UNION { ?u rdf:type ontology:work_of_art } } } } . FILTER ( ?w < ?z ) }
[]
occupation painting work of art
SYSTEM
220
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q177220 Q1569439 Q131512 Q16735601 Q37226 Q1401609 Q27621374 Q152355 Q1218776 Q1124183 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q4610556 Q81710 Q1259917 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q4504549 Q842782 Q185196 Q486748 Q328325 Q11900058 Q483501 Q215536 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q19723482 Q12902372 Q170790 Q1139055 Q1028181 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q733786 Q2309900 Q805221 Q5371902 Q17126809 Q12097 Q848550 Q386854 Q202648 Q1753370 Q107711 Q12059906 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q855855 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q19546 Q6116659 Q537575 Q20826540 Q715301 Q11338576 Q622630 Q3330547 Q3214532 Q14009165 Q15954519 Q2981922 Q10833314 Q1318187 Q29182 Q326358 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q54128 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q207651 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q1627992 Q2309784 Q253567 Q3439798 Q2191547 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q331432 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q15296811 Q765541 Q2011889 Q49476 Q1281618 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q811122 Q373017 Q2180295 Q1294787 Q1630100 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q3305213)|c(Q838948),P180,c(Q12737077))
action count
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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q42603
relation P180
type Q3305213
type Q838948
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?w ) WHERE { { ?m property:P180 ?g . ?g rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q3305213 } UNION { ?g rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q838948 . ?m property:P180 ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { ?u property:P180 resource:Q42603 . { { ?u rdf:type ontology:Q3305213 } UNION { ?u rdf:type ontology:Q838948 } } } } . FILTER ( ?w < ?z ) }
fiddler acrobat milkmaid worker standard-bearer singer sheep shearer farmer florist teacher vaquero bear hunter cobbler arriero lumberjack 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 model shepherd violinist deacon wet nurse sailor clown spinner butcher religious servant detective midwife pianist stonemason explorer artist merchant civil servant sower abbé architect street musician nurse parson mandolinist flautist mathematician tax collector painter mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic monk helmsman ballet dancer harpsichordist rescuer king VOC Opperhoofd in Japan drummer referee curate firefighter herder dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja page friar hobo fishmonger recorder player laborer pope priestess gravedigger erudite comics artist boxer odalisque chronicler plowman trapper alchemist American pioneer tennis player scrivener bishop joiner goatherd pedicure Catholic priest courtesan member of parliament bartender clogmaker peddler reaper condottiero canon chess player 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 abbot matador goldsmith waterseller pretender astronomer surgeon domestic worker cook executioner Kassandra embroiderer high-ranking civil servant in France exotic dancer lyricist plasterer gardener composer miller tightrope walker maid lady's maid sport cyclist apprentice King of France picador woodcutter lacemaker Snake charming carpenter school teacher officer fisherman baker knife grinder police officer guard Maid of honour draughtsperson kazasker madam archbishop sculptor boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric construction worker basketry mail carrier artisan art model bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
220
action count
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 work of art
action count
action filter_multi_types
action find_reverse
entity priest
relation depicts
type painting
type work of art
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?w ) WHERE { { ?m property:depicts ?g . ?g rdf:type ontology:occupation . ?m rdf:type ontology:painting } UNION { ?g rdf:type ontology:occupation . ?m rdf:type ontology:work_of_art . ?m property:depicts ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { ?u property:depicts resource:priest . { { ?u rdf:type ontology:painting } UNION { ?u rdf:type ontology:work_of_art } } } } . FILTER ( ?w < ?z ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q1036
P19 P21
Q502895
USER
Which people were born at Uganda and have the gender as male ?
AND((c(Q502895),P19,Q1036), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1036
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q1036'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?w WHERE { ?w property:P19 resource:Q1036 . ?w property:P21 resource:Q6581097 . ?w rdf:type ontology:Q502895 }
male Uganda
action filter_type
action intersection
action find_reverse
entity Uganda
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Uganda'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?w WHERE { ?w property:place_of_birth resource:Uganda . ?w property:gender resource:male . ?w rdf:type ontology:common_name }
[]
common name
Q19664772 Q1338340 Q16730445 Q7686751 Q23540924 Q16229798 Q7045634 Q17306357 Q5496029 Q4810985
SYSTEM
Some of them are Levixone, Emmanuel Nsubuga, Joseph Mpande, Tarsis Kabwegyere, Hassan Basajjabalaba, Brian Majwega, Nobel Mayombo, Dick Olum, Fred Omach, Aston Kajara
Q19666755 Q7823093 Q4865086 Q5495976 Q20684303 Q6180999 Q5382289 Q4670515 Q6832006 Q23304315 Q16730087 Q16194624 Q17505167 Q24572632 Q19893521 Q24572306 Q7519223 Q4280983 Q7518558 Q338138 Q23772403 Q6944665 Q16887144 Q7328008 Q6983713 Q19664772 Q23772139 Q6943774 Q4717580 Q23035913 Q6960633 Q6404722 Q24053515 Q18356337 Q16729327 Q19667665 Q16980102 Q19667761 Q16234791 Q16194632 Q5496485 Q951522 Q7365019 Q19668441 Q15993247 Q7089874 Q344941 Q16730067 Q16209992 Q18719302 Q18045200 Q7146120 Q5423415 Q16152010 Q5240772 Q5366225 Q6450630 Q19207088 Q5499420 Q25231187 Q1569686 Q7451221 Q23541052 Q20684447 Q710806 Q17306357 Q4684139 Q6410030 Q23304415 Q7517619 Q26211023 Q6096678 Q18637737 Q6203904 Q5238267 Q24896277 Q18044661 Q24053532 Q19664488 Q5515776 Q19666589 Q1338340 Q20684365 Q22162720 Q5186066 Q7850457 Q6416282 Q18349252 Q19666433 Q7155240 Q19893338 Q18686569 Q5724197 Q5069763 Q7234414 Q18395177 Q8023150 Q19276816 Q16232829 Q6776240 Q6702958 Q19667624 Q5373324 Q918295 Q17198741 Q6915910 Q2005711 Q6375953 Q16146282 Q6200572 Q16186459 Q4665890 Q16730485 Q6224194 Q7452728 Q19609616 Q13459000 Q7900065 Q16848971 Q18764119 Q5576477 Q22935615 Q6346684 Q5541362 Q5496187 Q18686455 Q5373353 Q17402870 Q5239645 Q5217758 Q16849141 Q16205724 Q18705268 Q6140434 Q5549595 Q23540924 Q19666498 Q4810985 Q6377743 Q5118438 Q5679880 Q19665176 Q7692016 Q7448997 Q6250155 Q6962111 Q4726655 Q18344813 Q7175509 Q393388 Q5393381 Q19668415 Q16202910 Q19667342 Q16203636 Q7167909 Q23409627 Q6176542 Q7983291 Q22935831 Q5496029 Q7931970 Q19667032 Q18720263 Q7407448 Q23304619 Q16229798 Q7167923 Q3069348 Q4935806 Q16848899 Q4987192 Q23007693 Q24263664 Q372613 Q16730445 Q7404586 Q6022573 Q7324513 Q20644568 Q20684295 Q19281660 Q18704882 Q8069664 Q5717682 Q7045634 Q22280394 Q5649199 Q16017445 Q3784984 Q20127943 Q6794350 Q6129213 Q16146388 Q23541013 Q338125 Q16193010 Q16850099 Q16729239 Q19842997 Q104419 Q6346972 Q6380577 Q5345277 Q16236793 Q23418968 Q2736096 Q23409638 Q5717757 Q7781207 Q1503049 Q19059293 Q7608889 Q6177088 Q7407949 Q6787393 Q7633814 Q6728451 Q812677 Q5576549 Q5075388 Q16146257 Q7686751 Q23541031 Q19353865 Q6076821 Q5227877 Q19665835 Q16527139 Q6380553 Q6932197 Q3877580 Q267234 Q16849160 Q6944729 Q6915834 Q18115451 Q19276649 Q6355203 Q7518688 Q18645729 Q18763734 Q16735185 Q6271902 Q17198801 Q5761037 Q58240 Q7447130 Q18085680 Q23304245 Q5490025 Q21520259 Q6702091 Q19668508 Q6405941 Q6406415 Q5385927 Q19666265 Q4821505 Q5360972 Q82871 Q19665800 Q24565886 Q1323390 Q8017966 Q1606997 Q16730030 Q23302030 Q4811869 Q19957755 Q10514379 Q5534801 Q16734829 Q18687943 Q6140276 Q6934319 Q16730446 Q6687538 Q5214068 Q6939908
AND((c(Q502895),P19,Q1036), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1036
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] were born at Uganda and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q1036'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?w WHERE { ?w property:P19 resource:Q1036 . ?w property:P21 resource:Q6581097 . ?w rdf:type ontology:Q502895 }
Juma Kisaame Tony Odur Bart Magunda Katureebe Fred Mukisa Anatoli Kamugisha Jeremiah Twa-Twa Ephraim Kamuntu Abubaker Tabula Michael Kyomya Nuwa Wamala Nnyanzi Ivan Ntege James Kakooza Robin Kibuuka William Byaruhanga Mike Mukula John Mugume Simon Lokodo Norbert Mao Simon D'Ujanga John Ssebaana Kizito William Kamanyi Mwanga I of Buganda Yasser Mugerwa Richard Nduhura Ndawula of Buganda Levixone Geoffrey Kiryabwire Mutebi I of Buganda Alex Onzima John Ssenseko Kulubya Nakibinge of Buganda Kiddu Makubuya Keith Kalyegira Frederick Kayanja GNL Zamba Richard Kanyerezi Kayanja Muhanga Innocent Oula Martin Mpuga Emmanuel Katongole Fred Wabwire-Mangen Scott Hicks Ronald Kibuule Ibrahim Ssemujju Nganda Stephen Mallinga Omara Atubo Samson Kisekka Isaac Muleme Dickson Huru Benon Mugumbya John Ntambirweki Patrick Bitature Ezra Suruma Samuel Turyagyenda David Wakikona Elly Tumwine Kyabaggu of Buganda Lawrence Ogwang Fredrick Mugisha Silver Kayemba Nasser Sebaggala Senteza Kajubi Drake Lubega Nakibus Lakara Kizza Besigye Dick Olum Adolf Mwesige Kimbugwe of Buganda Ponsiano Ngabirano Simeon Masaba Mc Norman Ivan Koreta Paddy Man Jjunju of Buganda David Otti Herbert Kabafunzaki Eriabu Lugujjo Grace Kavuma Sam Gombya Gabriel Opio Herman Ssewanyana Emmanuel Nsubuga David Kibikyo Frank Kalanda Crispus Kiyonga Ttembo of Buganda Kirunda Kivejinja Herman Basudde Elly Katunguka Paulo Kafeero Philemon Mateke Charles Hamya Henry Kajura Chameleone Postnet Omony Winyi of Kibulala Wilson Muruuli Mukasa Pen-Mogi Nyeko Benjamin Ochan Martin Muwanga Lulume Bayiga Maurice Kirya Emmanuel Otala Emmanuel Wamala Moses Ddiba Ssentongo Moses Oloya Assani Bajope Kateregga of Buganda Crespo Asiku Jimmy Kirunda Bright Rwamirama Abdulla Nasur Julius Ntambi John Byabagambi Serapio Rukundo Gabriel Ajedra Aridru Yawe Davis Urban Tibamanya Ronnie Kisekka Henry Tigan Godfrey Kisitu Kassim Nakibinge Kagulu of Buganda George Barnabas Kirya Fred Ruhindi Gravity Omutujju Emmanuel Tumusiime-Mutebile Clovis Kalyebara David Serwadda Daniel Kalinaki Saidi Kyeyune Suuna I of Buganda Holy Keane Amooti James Nsaba Buturo Gerald Ssendaula Hassan Basajjabalaba Joseph Magandaazi Yiga Aston Kajara Kato Kintu Chwa I of Buganda Hassan Wasswa The mith Tebandeke of Buganda Semakookiro of Buganda John Nasasira Namuggala of Buganda Alimansi Kadogo Celestino Obua Peter Lokeris Aggrey Awori Ernest Kiiza Hakim Sendagire Christopher Evans Herman Kasekende Abraham Byandaala Perez Ahabwe Elvis Sekyanzi Jeje Odongo Werikhe Kafabusa Alan Kasujja Fred Omach Vincent Nyanzi John Maviiri Sam Ssimbwa Sam Engola Sebastian Munulo Brian Majwega Perezi Kamunanwire Geofrey Massa Bobi Wine Rogers Aloro Bulaimu Muwanga Kibirige Ali-Shah Jivraj Charles Lutaaya Phill Lewis Joseph Mpande Salim Saleh Okot Odhiambo Richard Byarugaba Sylver Kyagulanyi Julius Kaggwa Venansius Baryamureeba Babaluku Zerubabel Nyiira Henry Bagiire Nobel Mayombo Erisa Ssekisambu Hannington Kalyesubula Jimmy Katumba Henry Oryem Okello James Mugira Mawanda of Buganda James Baba Allan Kyambadde Ibrahim Kironde Kabanda Semei Kakungulu Kamanda Bataringaya Simon Okwi George Baguma Selestino Babungi Joseph Kony Kahinda Otafiire Kayima of Buganda Edward Semwanga Ismail Watenga James Nyakuni Rukidi IV of Toro Bob Kabonero Henry Banyenzaki Thembo Nyombi Geoffrey Sserunkuma Julius Kakeeto Stephen Chebrot Jemba of Buganda Sam Musenze Matia Kasaija Sudhir Ruparelia Madoxx Bazilio Olara-Okello Godfrey Ssali Charles Bakkabulindi Ali Kimera Tarsis Kabwegyere Godfrey Kirumira Mike Mutebi Isaac Musumba Daudi Migereko Ruyonga Anthony Capella Kayemba of Buganda Mugisha Muntu Noah Babadi Kasule Shailesh Vara Jamal Salim Mwesigwa Rukutana Moses Kalanzi Arthur Sserwanga Mondo Kagonyera Kamaanya of Buganda Simon Ejua Elly Wamala Mac Elvis Richard Kasagga Jonah Lwanga Fred Tolit Hilary Onek Sam Kutesa Sekamaanya of Buganda Hannington Sengendo James Isabirye Mugoya Frank Tumwebaze Kizito Keziron Luke Kercan Ofungi St. Nelly-Sade Kiggala of Buganda Kikulwe of Buganda Erias Lukwago Michael Ross Kakooza Augustus Nuwagaba Elijah Mushemeza Martin Ssempa Vampino Baltazar Kasirivu-Atwooki Charles Livingstone Mbabazi William S. Kalema Henry Luke Orombi Denis Iguma Arthur Isiko Asuman Kiyingi Farouk Miya Manfred Kizito Geoffrey Onegi Obel Rabadaba Isaiah Katumwa James Nangwala Mulondo of Buganda Joseph Semwanga Louis Kasekende Dan Mubiru Musa Ecweru
Levixone, Emmanuel Nsubuga, Joseph Mpande, Tarsis Kabwegyere, Hassan Basajjabalaba, Brian Majwega, Nobel Mayombo, Dick Olum, Fred Omach and Aston Kajara were born at Uganda and have the gender as male
Levixone Emmanuel Nsubuga Joseph Mpande Tarsis Kabwegyere Hassan Basajjabalaba Brian Majwega Nobel Mayombo Dick Olum Fred Omach Aston Kajara
action filter_type
action intersection
action find_reverse
entity Uganda
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Uganda'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?w WHERE { ?w property:place_of_birth resource:Uganda . ?w property:gender resource:male . ?w rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1036 Q119285
P610
Q14524493
USER
How many terrains are the highest point of Uganda or Aleutian Islands ?
(Q1036,P610,c(Q14524493)) (Q119285,P610,c(Q14524493))
action count
action union
action filter_type
action find
entity Q1036
relation P610
type Q14524493
action filter_type
action find
entity Q119285
relation P610
type Q14524493
['Q1036', 'P610', {'concept': 'Q14524493'}] ['Q119285', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { VALUES ( ?t ) { ( resource:Q1036 ) ( resource:Q119285 ) } . ?t property:P610 ?o }
Uganda Aleutian Islands
action count
action union
action filter_type
action find
entity Uganda
relation highest point
type terrain
action filter_type
action find
entity Aleutian Islands
relation highest point
type terrain
['Uganda', 'highest point', {'concept': 'terrain'}] ['Aleutian Islands', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { VALUES ( ?t ) { ( resource:Uganda ) ( resource:Aleutian_Islands ) } . ?t property:highest_point ?o }
[]
terrain
SYSTEM
2
Q682455 Q221666
(Q1036,P610,c(Q14524493)) (Q119285,P610,c(Q14524493))
action count
action union
action filter_type
action find
entity Q1036
relation P610
type Q14524493
action filter_type
action find
entity Q119285
relation P610
type Q14524493
[ANSWER]
['Q1036', 'P610', {'concept': 'Q14524493'}] ['Q119285', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { VALUES ( ?t ) { ( resource:Q1036 ) ( resource:Q119285 ) } . ?t property:P610 ?o }
Mount Shishaldin Mount Stanley
2
action count
action union
action filter_type
action find
entity Uganda
relation highest point
type terrain
action filter_type
action find
entity Aleutian Islands
relation highest point
type terrain
['Uganda', 'highest point', {'concept': 'terrain'}] ['Aleutian Islands', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { VALUES ( ?t ) { ( resource:Uganda ) ( resource:Aleutian_Islands ) } . ?t property:highest_point ?o }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q730242
P921
Q12737077 Q386724 Q2342494
USER
How many occupations were the main subjects in the work less number of works or collectables than test pilot ?
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q730242
relation P921
type Q386724
type Q2342494
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) ?d WHERE { { ?k property:P921 ?d . ?k rdf:type ontology:Q386724 . ?d rdf:type ontology:Q12737077 } UNION { ?k property:P921 ?d . ?d rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q2342494 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:P921 resource:Q730242 . { { ?s rdf:type ontology:Q386724 } UNION { ?s rdf:type ontology:Q2342494 } } } } . FILTER ( ?e < ?y ) }
test pilot
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity test pilot
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) ?d WHERE { { ?k property:main_subject ?d . ?k rdf:type ontology:work . ?d rdf:type ontology:occupation } UNION { ?k property:main_subject ?d . ?d rdf:type ontology:occupation . ?k rdf:type ontology:collectable } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:main_subject resource:test_pilot . { { ?s rdf:type ontology:work } UNION { ?s rdf:type ontology:collectable } } } } . FILTER ( ?e < ?y ) }
[]
occupation work collectable
SYSTEM
79
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q1124183 Q5185440 Q765778 Q33999 Q36180 Q3809586 Q3315094 Q622807 Q7358 Q131512 Q1708232 Q2094335 Q842782 Q378622 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q618536 Q2961580 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q486839 Q510373 Q899758 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q483501 Q152002 Q1114448 Q16533 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q732358 Q17143199 Q384593 Q2095549 Q372436 Q182436 Q1674312 Q361593 Q1856798 Q16707842
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q730242
relation P921
type Q386724
type Q2342494
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) ?d WHERE { { ?k property:P921 ?d . ?k rdf:type ontology:Q386724 . ?d rdf:type ontology:Q12737077 } UNION { ?k property:P921 ?d . ?d rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q2342494 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:P921 resource:Q730242 . { { ?s rdf:type ontology:Q386724 } UNION { ?s rdf:type ontology:Q2342494 } } } } . FILTER ( ?e < ?y ) }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve lumberjack Crime scene cleanup organist actor writer Wikipedian in Residence Prime Minister of Hungary seiyū clown farmer medallist United States Attorney detective racing driver Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates candidate taxi driver gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier member of parliament Lord High Steward violist Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil artist pastor cartoonist judge nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor comedian photographer peasant missionary United States federal judge musician Nomarch medical examiner police officer aviator statesman librarian rag-and-bone man police officer baseball umpire Member of Parliament in the United Kingdom
79
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity test pilot
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) ?d WHERE { { ?k property:main_subject ?d . ?k rdf:type ontology:work . ?d rdf:type ontology:occupation } UNION { ?k property:main_subject ?d . ?d rdf:type ontology:occupation . ?k rdf:type ontology:collectable } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:main_subject resource:test_pilot . { { ?s rdf:type ontology:work } UNION { ?s rdf:type ontology:collectable } } } } . FILTER ( ?e < ?y ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1895776 Q6761446
P19
Q15617994
USER
Which administrative territories were Maria Mutagamba or Maria Croon born at ?
OR((Q6761446,P19,c(Q15617994)), (Q1895776,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q6761446
relation P19
action find
entity Q1895776
relation P19
type Q15617994
{'OR': [['Q6761446', 'P19', {'concept': 'Q15617994'}], ['Q1895776', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q6761446 property:P19 ?b } UNION { resource:Q1895776 property:P19 ?b } } . ?b rdf:type ontology:Q15617994 }
Maria Croon Maria Mutagamba
action filter_type
action union
action find
entity Maria Mutagamba
relation place of birth
action find
entity Maria Croon
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Maria Mutagamba', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Maria Croon', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Maria_Mutagamba property:place_of_birth ?b } UNION { resource:Maria_Croon property:place_of_birth ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1036 Q569621
SYSTEM
Uganda, Kirf
Q1036 Q569621
OR((Q6761446,P19,c(Q15617994)), (Q1895776,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q6761446
relation P19
action find
entity Q1895776
relation P19
type Q15617994
Maria Mutagamba or Maria Croon were born in [ANSWERS]
{'OR': [['Q6761446', 'P19', {'concept': 'Q15617994'}], ['Q1895776', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q6761446 property:P19 ?b } UNION { resource:Q1895776 property:P19 ?b } } . ?b rdf:type ontology:Q15617994 }
Uganda Kirf
Maria Mutagamba or Maria Croon were born in Uganda and Kirf
Uganda Kirf
action filter_type
action union
action find
entity Maria Mutagamba
relation place of birth
action find
entity Maria Croon
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Maria Mutagamba', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Maria Croon', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Maria_Mutagamba property:place_of_birth ?b } UNION { resource:Maria_Croon property:place_of_birth ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]