Simple Question (Direct)
Simple Question
Q2644483
P106
Q12737077
USER
Which occupations are the professions of Alfons Weißgatterer ?
(Q2644483,P106,c(Q12737077))
action filter_type
action find
entity Q2644483
relation P106
type Q12737077
['Q2644483', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q2644483 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
Alfons Weißgatterer
action filter_type
action find
entity Alfons Weißgatterer
relation occupation
type occupation
['Alfons Weißgatterer', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Alfons_Weißgatterer property:occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q82955 Q202883
SYSTEM
politician, veterinarian
Q82955 Q202883
(Q2644483,P106,c(Q12737077))
action filter_type
action find
entity Q2644483
relation P106
type Q12737077
The [ANSWERS] are the professions of Alfons Weißgatterer
['Q2644483', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q2644483 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
politician veterinarian
The politician and veterinarian are the professions of Alfons Weißgatterer
politician veterinarian
action filter_type
action find
entity Alfons Weißgatterer
relation occupation
type occupation
['Alfons Weißgatterer', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Alfons_Weißgatterer property:occupation ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q202883
P425
Q1047113
USER
Who has veterinarian as the associated field of occupation ?
(Q202883,P425,c(Q1047113))
action filter_type
action find
entity Q202883
relation P425
type Q1047113
['Q202883', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?r WHERE { resource:Q202883 property:P425 ?r . ?r rdf:type ontology:Q1047113 }
veterinarian
action filter_type
action find
entity veterinarian
relation field of this occupation
type special field
['veterinarian', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?r WHERE { resource:veterinarian property:field_of_this_occupation ?r . ?r rdf:type ontology:special_field }
[]
special field
Q170201
SYSTEM
veterinary medicine
Q170201
(Q202883,P425,c(Q1047113))
action filter_type
action find
entity Q202883
relation P425
type Q1047113
[ANSWER] has veterinarian as the associated field of occupation
['Q202883', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?r WHERE { resource:Q202883 property:P425 ?r . ?r rdf:type ontology:Q1047113 }
veterinary medicine
Veterinary medicine has veterinarian as the associated field of occupation
veterinary medicine
action filter_type
action find
entity veterinarian
relation field of this occupation
type special field
['veterinarian', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?r WHERE { resource:veterinarian property:field_of_this_occupation ?r . ?r rdf:type ontology:special_field }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5695233
Q1047113
USER
And what about heavy equipment operator?
(Q5695233,P425,c(Q1047113))
action filter_type
action find
entity Q5695233
relation P425
type Q1047113
['Q5695233', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?f WHERE { resource:Q5695233 property:P425 ?f . ?f rdf:type ontology:Q1047113 }
heavy equipment operator
action filter_type
action find
entity heavy equipment operator
relation field of this occupation
type special field
['heavy equipment operator', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?f WHERE { resource:heavy_equipment_operator property:field_of_this_occupation ?f . ?f rdf:type ontology:special_field }
[]
special field
Q77590
SYSTEM
civil engineering
Q77590
(Q5695233,P425,c(Q1047113))
action filter_type
action find
entity Q5695233
relation P425
type Q1047113
[ANSWER]
['Q5695233', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?f WHERE { resource:Q5695233 property:P425 ?f . ?f rdf:type ontology:Q1047113 }
civil engineering
civil engineering
action filter_type
action find
entity heavy equipment operator
relation field of this occupation
type special field
['heavy equipment operator', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?f WHERE { resource:heavy_equipment_operator property:field_of_this_occupation ?f . ?f rdf:type ontology:special_field }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P361
Q1914636 Q1047113
USER
Which activities are atleast 1 special field a component of ?
(c(Q1047113),P361,c(Q1914636))
action atleast
action find_reverse_tuple_counts
relation P361
type Q1914636
type Q1047113
value 1
[{'concept': 'Q1047113'}, 'P361', {'concept': 'Q1914636'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?s >= 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?s ) WHERE { ?x property:P361 ?a . ?a rdf:type ontology:Q1914636 . ?x rdf:type ontology:Q1047113 } GROUP BY ?a } }
action atleast
action find_reverse_tuple_counts
relation part of
type activity
type special field
value 1
[{'concept': 'special field'}, 'part of', {'concept': 'activity'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?s >= 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?s ) WHERE { ?x property:part_of ?a . ?a rdf:type ontology:activity . ?x rdf:type ontology:special_field } GROUP BY ?a } }
[]
activity special field
Q514 Q1069 Q12271
SYSTEM
anatomy, geology, architecture
Q1069 Q12271 Q34187 Q944537 Q8162 Q514
(c(Q1047113),P361,c(Q1914636))
action atleast
action find_reverse_tuple_counts
relation P361
type Q1914636
type Q1047113
value 1
[ANSWERS] are atleast 1 special field a component of
[{'concept': 'Q1047113'}, 'P361', {'concept': 'Q1914636'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?s >= 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?s ) WHERE { ?x property:P361 ?a . ?a rdf:type ontology:Q1914636 . ?x rdf:type ontology:Q1047113 } GROUP BY ?a } }
geology architecture religious studies Geisteswissenschaft linguistics anatomy
Anatomy, geology and architecture are atleast 1 special field a component of
anatomy geology architecture
action atleast
action find_reverse_tuple_counts
relation part of
type activity
type special field
value 1
[{'concept': 'special field'}, 'part of', {'concept': 'activity'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?s >= 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?s ) WHERE { ?x property:part_of ?a . ?a rdf:type ontology:activity . ?x rdf:type ontology:special_field } GROUP BY ?a } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P361
Q43229 Q336 Q1914636
USER
How many activities are a component of lesser number of organizations or sciences than that activity ?
(c(Q1914636),P361,c(Q43229)|c(Q336))
[{'concept': 'Q1914636'}, 'P361', [{'concept': 'Q43229'}, {'concept': 'Q336'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?l ) { ( ?y ) ( ?x ) } . ?z property:P361 ?l } . ?z rdf:type ontology:Q423229 . ?y rdf:type ontology:Q43229 . ?x rdf:type ontology:Q336 }
[{'concept': 'activity'}, 'part of', [{'concept': 'organization'}, {'concept': 'science'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?l ) { ( ?y ) ( ?x ) } . ?z property:part_of ?l } . ?z rdf:type ontology:activity . ?y rdf:type ontology:organization . ?x rdf:type ontology:science }
[]
organization science activity
Comparative|Count over More/Less|Mult. entity type|Clarification
Q514
SYSTEM
Did you mean anatomy ?
(c(Q1914636),P361,c(Q43229)|c(Q336))
[ANSWER]
[{'concept': 'Q1914636'}, 'P361', [{'concept': 'Q43229'}, {'concept': 'Q336'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?l ) { ( ?y ) ( ?x ) } . ?z property:P361 ?l } . ?z rdf:type ontology:Q423229 . ?y rdf:type ontology:Q43229 . ?x rdf:type ontology:Q336 }
Did you mean anatomy ?
anatomy
[{'concept': 'activity'}, 'part of', [{'concept': 'organization'}, {'concept': 'science'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?l ) { ( ?y ) ( ?x ) } . ?z property:part_of ?l } . ?z rdf:type ontology:activity . ?y rdf:type ontology:organization . ?x rdf:type ontology:science }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q1914636),P361,c(Q43229)|c(Q336))
[{'concept': 'Q1914636'}, 'P361', [{'concept': 'Q43229'}, {'concept': 'Q336'}]]
[{'concept': 'activity'}, 'part of', [{'concept': 'organization'}, {'concept': 'science'}]]
[]
SYSTEM
0
(c(Q1914636),P361,c(Q43229)|c(Q336))
[ANSWER]
[{'concept': 'Q1914636'}, 'P361', [{'concept': 'Q43229'}, {'concept': 'Q336'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:P361 ?y } UNION { ?z property:P361 ?x } } . ?z rdf:type ontology:Q423229 . ?y rdf:type ontology:Q43229 . ?x rdf:type ontology:Q336 }
0
[{'concept': 'activity'}, 'part of', [{'concept': 'organization'}, {'concept': 'science'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:part_of ?y } UNION { ?z property:part_of ?x } } . ?z rdf:type ontology:activity . ?y rdf:type ontology:organization . ?x rdf:type ontology:science }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1069
P805
Q2695280
USER
Which technics was dedicated to geology ?
(c(Q2695280),P805,Q1069)
action filter_type
action find_reverse
entity Q1069
relation P805
type Q2695280
[{'concept': 'Q2695280'}, 'P805', 'Q1069']
SELECT DISTINCT ?c WHERE { ?c property:P805 resource:Q1069 . ?c rdf:type ontology:Q2695280 }
geology
action filter_type
action find_reverse
entity geology
relation subject of
type technics
[{'concept': 'technics'}, 'subject of', 'geology']
SELECT DISTINCT ?c WHERE { ?c property:subject_of resource:geology . ?c rdf:type ontology:technics }
[]
technics
Q635485
SYSTEM
sedimentation
Q635485
(c(Q2695280),P805,Q1069)
action filter_type
action find_reverse
entity Q1069
relation P805
type Q2695280
[ANSWER] was dedicated to geology
[{'concept': 'Q2695280'}, 'P805', 'Q1069']
SELECT DISTINCT ?c WHERE { ?c property:P805 resource:Q1069 . ?c rdf:type ontology:Q2695280 }
sedimentation
Sedimentation was dedicated to geology
sedimentation
action filter_type
action find_reverse
entity geology
relation subject of
type technics
[{'concept': 'technics'}, 'subject of', 'geology']
SELECT DISTINCT ?c WHERE { ?c property:subject_of resource:geology . ?c rdf:type ontology:technics }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1069
P921
Q21114848
USER
Which magazine genres were mainly based on that activity ?
(c(Q21114848),P921,Q635485)
action filter_type
action find_reverse
entity Q1069
relation P921
type Q21114848
[{'concept': 'Q21114848'}, 'P921', 'Q635485']
SELECT DISTINCT ?w WHERE { ?w property:P921 resource:Q1069 . ?w rdf:type ontology:Q21114848 }
geology
action filter_type
action find_reverse
entity geology
relation main subject
type magazine genre
[{'concept': 'magazine genre'}, 'main subject', 'sedimentation']
SELECT DISTINCT ?w WHERE { ?w property:main_subject resource:geology . ?w rdf:type ontology:magazine_genre }
[]
magazine genre
Q23090829 Q21143094
SYSTEM
Gondwana Geological Magazine, Boletín Geológico y Minero
Q23090829 Q21143094
(c(Q21114848),P921,Q635485)
action filter_type
action find_reverse
entity Q1069
relation P921
type Q21114848
[ANSWERS] were mainly based on that activity
[{'concept': 'Q21114848'}, 'P921', 'Q635485']
SELECT DISTINCT ?w WHERE { ?w property:P921 resource:Q1069 . ?w rdf:type ontology:Q21114848 }
Gondwana Geological Magazine Boletín Geológico y Minero
Gondwana Geological Magazine and Boletín Geológico y Minero were mainly based on that activity
Gondwana Geological Magazine Boletín Geológico y Minero
action filter_type
action find_reverse
entity geology
relation main subject
type magazine genre
[{'concept': 'magazine genre'}, 'main subject', 'sedimentation']
SELECT DISTINCT ?w WHERE { ?w property:main_subject resource:geology . ?w rdf:type ontology:magazine_genre }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q514
P361
Q336 Q2465832
USER
How many sciences and branches of science are anatomy a component of ?
(Q514,P361,c(Q336)) (Q514,P361,c(Q2465832))
action count
action union
action filter_type
action find
entity Q514
relation P361
type Q336
action filter_type
action find
entity Q514
relation P361
type Q2465832
['Q514', 'P361', {'concept': 'Q336'}] ['Q514', 'P361', {'concept': 'Q2465832'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { resource:Q514 property:P361 ?r . ?r rdf:type ontology:Q2465832 } UNION { ?r rdf:type ontology:Q336 . resource:Q514 property:P361 ?r } }
anatomy
action count
action union
action filter_type
action find
entity anatomy
relation part of
type science
action filter_type
action find
entity anatomy
relation part of
type branch of science
['anatomy', 'part of', {'concept': 'science'}] ['anatomy', 'part of', {'concept': 'branch of science'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { resource:anatomy property:part_of ?r . ?r rdf:type ontology:branch_of_science } UNION { ?r rdf:type ontology:science . resource:anatomy property:part_of ?r } }
[]
science branch of science
SYSTEM
1 sciences and 1 branches of science
Q11190 Q420
(Q514,P361,c(Q336)) (Q514,P361,c(Q2465832))
action count
action union
action filter_type
action find
entity Q514
relation P361
type Q336
action filter_type
action find
entity Q514
relation P361
type Q2465832
[ANSWER]
['Q514', 'P361', {'concept': 'Q336'}] ['Q514', 'P361', {'concept': 'Q2465832'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { resource:Q514 property:P361 ?r . ?r rdf:type ontology:Q2465832 } UNION { ?r rdf:type ontology:Q336 . resource:Q514 property:P361 ?r } }
medicine biology
1 sciences and 1 branches of science
action count
action union
action filter_type
action find
entity anatomy
relation part of
type science
action filter_type
action find
entity anatomy
relation part of
type branch of science
['anatomy', 'part of', {'concept': 'science'}] ['anatomy', 'part of', {'concept': 'branch of science'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { resource:anatomy property:part_of ?r . ?r rdf:type ontology:branch_of_science } UNION { ?r rdf:type ontology:science . resource:anatomy property:part_of ?r } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q514
P101
Q8205328
USER
Which artefact has specialisation in that activity ?
action filter_type
action find_reverse
entity Q514
relation P101
type Q8205328
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q8205328 . ?e property:P101 resource:Q514 }
anatomy
action filter_type
action find_reverse
entity anatomy
relation field of work
type artefact
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:artefact . ?e property:field_of_work resource:anatomy }
[]
artefact
Q629138
SYSTEM
body cavity
Q629138
action filter_type
action find_reverse
entity Q514
relation P101
type Q8205328
[ANSWER] has specialisation in that activity
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q8205328 . ?e property:P101 resource:Q514 }
body cavity
Body cavity has specialisation in that activity
body cavity
action filter_type
action find_reverse
entity anatomy
relation field of work
type artefact
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:artefact . ?e property:field_of_work resource:anatomy }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1250916
P180
Q12737077 Q3516658 Q17638008
USER
How many occupations are depicted in lesser number of heraldic symbols or game equipment than warrior ?
(c(Q3516658)|c(Q17638008),P180,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q1250916
relation P180
type Q3516658
type Q17638008
[[{'concept': 'Q3516658'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?g ) WHERE { VALUES ( ?v ) { ( ontology:Q3516658 ) ( ontology:Q17638008 ) } . ?x rdf:type ?v } GROUP BY ?f } . FILTER ( ?g < ?k ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { ?h property:P180 resource:Q1250916 . { ?h rdf:type ?i . VALUES ( ?i ) { ( ontology:Q3516658 ) ( ontology:Q17638008 ) } } } } }
warrior
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity warrior
relation depicts
type heraldic symbol
type game equipment
[[{'concept': 'heraldic symbol'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?g ) WHERE { VALUES ( ?v ) { ( ontology:heraldic_symbol ) ( ontology:game_equipment ) } . ?x rdf:type ?v } GROUP BY ?f } . FILTER ( ?g < ?k ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { ?h property:depicts resource:warrior . { ?h rdf:type ?i . VALUES ( ?i ) { ( ontology:heraldic_symbol ) ( ontology:game_equipment ) } } } } }
[]
occupation heraldic symbol game equipment
SYSTEM
227
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 Q47064 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 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 Q4991371 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 Q2730732 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q207651 Q5716684 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q1627992 Q2309784 Q253567 Q3439798 Q2191547 Q838811 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q331432 Q639669 Q49757 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q15296811 Q765541 Q2011889 Q49476 Q1281618 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q811122 Q373017 Q2180295 Q42603 Q1294787 Q1630100 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q3516658)|c(Q17638008),P180,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q1250916
relation P180
type Q3516658
type Q17638008
[ANSWER]
[[{'concept': 'Q3516658'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?g ) WHERE { VALUES ( ?v ) { ( ontology:Q3516658 ) ( ontology:Q17638008 ) } . ?x rdf:type ?v } GROUP BY ?f } . FILTER ( ?g < ?k ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { ?h property:P180 resource:Q1250916 . { ?h rdf:type ?i . VALUES ( ?i ) { ( ontology:Q3516658 ) ( ontology:Q17638008 ) } } } } }
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 military personnel 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 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 soldier 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 equestrian courtier judge abbot matador goldsmith waterseller pretender astronomer surgeon domestic worker cook executioner dancer 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 peasant woodcutter lacemaker Snake charming carpenter school teacher officer fisherman musician poet 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 priest artisan art model bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
227
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity warrior
relation depicts
type heraldic symbol
type game equipment
[[{'concept': 'heraldic symbol'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?g ) WHERE { VALUES ( ?v ) { ( ontology:heraldic_symbol ) ( ontology:game_equipment ) } . ?x rdf:type ?v } GROUP BY ?f } . FILTER ( ?g < ?k ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { ?h property:depicts resource:warrior . { ?h rdf:type ?i . VALUES ( ?i ) { ( ontology:heraldic_symbol ) ( ontology:game_equipment ) } } } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q397 Q514
P1412 P101
Q502895
USER
Which people have his/her area as anatomy and talks in Latin ?
AND((c(Q502895),P101,Q514), (c(Q502895),P1412,Q397))
action filter_type
action intersection
action find_reverse
entity Q514
relation P101
action find_reverse
entity Q397
relation P1412
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P101', 'Q514'], [{'concept': 'Q502895'}, 'P1412', 'Q397']]}
SELECT DISTINCT ?s WHERE { ?s property:P101 resource:Q514 . ?s property:P1412 resource:Q397 . ?s rdf:type ontology:Q502895 }
Latin anatomy
action filter_type
action intersection
action find_reverse
entity anatomy
relation field of work
action find_reverse
entity Latin
relation languages spoken, written or signed
type common name
{'AND': [[{'concept': 'common name'}, 'field of work', 'anatomy'], [{'concept': 'common name'}, 'languages spoken, written or signed', 'Latin']]}
SELECT DISTINCT ?s WHERE { ?s property:field_of_work resource:anatomy . ?s property:languages_spoken,_written_or_signed resource:Latin . ?s rdf:type ontology:common_name }
[]
common name
Q316996 Q2541804
SYSTEM
Franciscus Sylvius, Giovanni Filippo Ingrassia
Q316996 Q2541804
AND((c(Q502895),P101,Q514), (c(Q502895),P1412,Q397))
action filter_type
action intersection
action find_reverse
entity Q514
relation P101
action find_reverse
entity Q397
relation P1412
type Q502895
[ANSWERS] have his/her area as anatomy and talks in Latin
{'AND': [[{'concept': 'Q502895'}, 'P101', 'Q514'], [{'concept': 'Q502895'}, 'P1412', 'Q397']]}
SELECT DISTINCT ?s WHERE { ?s property:P101 resource:Q514 . ?s property:P1412 resource:Q397 . ?s rdf:type ontology:Q502895 }
Franciscus Sylvius Giovanni Filippo Ingrassia
Franciscus Sylvius and Giovanni Filippo Ingrassia have his/her area as anatomy and talks in Latin
Franciscus Sylvius Giovanni Filippo Ingrassia
action filter_type
action intersection
action find_reverse
entity anatomy
relation field of work
action find_reverse
entity Latin
relation languages spoken, written or signed
type common name
{'AND': [[{'concept': 'common name'}, 'field of work', 'anatomy'], [{'concept': 'common name'}, 'languages spoken, written or signed', 'Latin']]}
SELECT DISTINCT ?s WHERE { ?s property:field_of_work resource:anatomy . ?s property:languages_spoken,_written_or_signed resource:Latin . ?s rdf:type ontology:common_name }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P106
Q151885 Q12737077
USER
How many concepts or occupations do that person do for a living ?
(Q316996,P106,c(Q151885)) (Q316996,P106,c(Q12737077)) (Q316996,P106,c(Q151885)) (Q316996,P106,c(Q12737077)) (Q2541804,P106,c(Q151885)) (Q2541804,P106,c(Q12737077))
['Q316996', 'P106', {'concept': 'Q151885'}] ['Q316996', 'P106', {'concept': 'Q12737077'}] ['Q316996', 'P106', {'concept': 'Q151885'}] ['Q316996', 'P106', {'concept': 'Q12737077'}] ['Q2541804', 'P106', {'concept': 'Q151885'}] ['Q2541804', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q316996 property:Q528892 ?z } UNION { resource:Q316996 property:Q528892 ?y } UNION { resource:Q316996 property:Q528892 ?z } UNION { resource:Q316996 property:Q528892 ?y } UNION { resource:Q2541804 property:Q528892 ?z } UNION { resource:Q2541804 property:Q528892 ?y } } . ?z rdf:type ontology:Q151885 . ?y rdf:type ontology:Q528892 }
['Franciscus Sylvius', 'occupation', {'concept': 'concept'}] ['Franciscus Sylvius', 'occupation', {'concept': 'occupation'}] ['Franciscus Sylvius', 'occupation', {'concept': 'concept'}] ['Franciscus Sylvius', 'occupation', {'concept': 'occupation'}] ['Giovanni Filippo Ingrassia', 'occupation', {'concept': 'concept'}] ['Giovanni Filippo Ingrassia', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Franciscus_Sylvius property:occupation ?z } UNION { resource:Franciscus_Sylvius property:occupation ?y } UNION { resource:Franciscus_Sylvius property:occupation ?z } UNION { resource:Franciscus_Sylvius property:occupation ?y } UNION { resource:Giovanni_Filippo_Ingrassia property:occupation ?z } UNION { resource:Giovanni_Filippo_Ingrassia property:occupation ?y } } . ?z rdf:type ontology:concept . ?y rdf:type ontology:occupation }
[]
concept occupation
Quantitative|Count|Mult. entity type|Clarification
Q316996
SYSTEM
Did you mean Franciscus Sylvius ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q316996 property:Q528892 ?z } UNION { resource:Q316996 property:Q528892 ?y } UNION { resource:Q316996 property:Q528892 ?z } UNION { resource:Q316996 property:Q528892 ?y } UNION { resource:Q2541804 property:Q528892 ?z } UNION { resource:Q2541804 property:Q528892 ?y } } . ?z rdf:type ontology:Q151885 . ?y rdf:type ontology:Q528892 }
Did you mean Franciscus Sylvius ?
Franciscus Sylvius
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Franciscus_Sylvius property:occupation ?z } UNION { resource:Franciscus_Sylvius property:occupation ?y } UNION { resource:Franciscus_Sylvius property:occupation ?z } UNION { resource:Franciscus_Sylvius property:occupation ?y } UNION { resource:Giovanni_Filippo_Ingrassia property:occupation ?z } UNION { resource:Giovanni_Filippo_Ingrassia property:occupation ?y } } . ?z rdf:type ontology:concept . ?y rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q316996,P106,c(Q151885)) (Q316996,P106,c(Q12737077)) (Q316996,P106,c(Q151885)) (Q316996,P106,c(Q12737077)) (Q2541804,P106,c(Q151885)) (Q2541804,P106,c(Q12737077))
['Q316996', 'P106', {'concept': 'Q151885'}] ['Q316996', 'P106', {'concept': 'Q12737077'}] ['Q316996', 'P106', {'concept': 'Q151885'}] ['Q316996', 'P106', {'concept': 'Q12737077'}] ['Q2541804', 'P106', {'concept': 'Q151885'}] ['Q2541804', 'P106', {'concept': 'Q12737077'}]
['Franciscus Sylvius', 'occupation', {'concept': 'concept'}] ['Franciscus Sylvius', 'occupation', {'concept': 'occupation'}] ['Franciscus Sylvius', 'occupation', {'concept': 'concept'}] ['Franciscus Sylvius', 'occupation', {'concept': 'occupation'}] ['Giovanni Filippo Ingrassia', 'occupation', {'concept': 'concept'}] ['Giovanni Filippo Ingrassia', 'occupation', {'concept': 'occupation'}]
[]
SYSTEM
4
Q10732476 Q10872101 Q39631 Q1622272
(Q316996,P106,c(Q151885)) (Q316996,P106,c(Q12737077)) (Q316996,P106,c(Q151885)) (Q316996,P106,c(Q12737077)) (Q2541804,P106,c(Q151885)) (Q2541804,P106,c(Q12737077))
[ANSWER]
['Q316996', 'P106', {'concept': 'Q151885'}] ['Q316996', 'P106', {'concept': 'Q12737077'}] ['Q316996', 'P106', {'concept': 'Q151885'}] ['Q316996', 'P106', {'concept': 'Q12737077'}] ['Q2541804', 'P106', {'concept': 'Q151885'}] ['Q2541804', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q316996 property:Q528892 ?z } UNION { resource:Q316996 property:Q528892 ?y } UNION { resource:Q316996 property:Q528892 ?z } UNION { resource:Q316996 property:Q528892 ?y } UNION { resource:Q2541804 property:Q528892 ?z } UNION { resource:Q2541804 property:Q528892 ?y } } . ?z rdf:type ontology:Q151885 . ?y rdf:type ontology:Q528892 }
art collector anatomist physician university teacher
4
['Franciscus Sylvius', 'occupation', {'concept': 'concept'}] ['Franciscus Sylvius', 'occupation', {'concept': 'occupation'}] ['Franciscus Sylvius', 'occupation', {'concept': 'concept'}] ['Franciscus Sylvius', 'occupation', {'concept': 'occupation'}] ['Giovanni Filippo Ingrassia', 'occupation', {'concept': 'concept'}] ['Giovanni Filippo Ingrassia', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Franciscus_Sylvius property:occupation ?z } UNION { resource:Franciscus_Sylvius property:occupation ?y } UNION { resource:Franciscus_Sylvius property:occupation ?z } UNION { resource:Franciscus_Sylvius property:occupation ?y } UNION { resource:Giovanni_Filippo_Ingrassia property:occupation ?z } UNION { resource:Giovanni_Filippo_Ingrassia property:occupation ?y } } . ?z rdf:type ontology:concept . ?y rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can atmost 1393 people perform with ?
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1393
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?f } . FILTER ( ?d <= 1393 ) }
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1393
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?f } . FILTER ( ?d <= 1393 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1393
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?f } . FILTER ( ?d <= 1393 ) }
viola lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Which musical instruments can atmost 1393 people perform with
davul harpsichord Wurlitzer electric piano
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1393
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?f } . FILTER ( ?d <= 1393 ) }
[]