Simple Question (Direct)
Simple Question
Q6451040
P106
Q12737077
USER
What is the profession of Kyle Anderson ?
(Q6451040,P106,c(Q12737077))
action filter_type
action find
entity Q6451040
relation P106
type Q12737077
['Q6451040', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q6451040 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Kyle Anderson
action filter_type
action find
entity Kyle Anderson
relation occupation
type occupation
['Kyle Anderson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Kyle_Anderson property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q3665646
SYSTEM
basketball player
Q3665646
(Q6451040,P106,c(Q12737077))
action filter_type
action find
entity Q6451040
relation P106
type Q12737077
The profession of Kyle Anderson is a [ANSWER]
['Q6451040', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q6451040 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
basketball player
The profession of Kyle Anderson is a basketball player
basketball player
action filter_type
action find
entity Kyle Anderson
relation occupation
type occupation
['Kyle Anderson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Kyle_Anderson property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6451040
P27
Q15617994
USER
Which administrative territory is Kyle Anderson an inhabitant of ?
(Q6451040,P27,c(Q15617994))
action filter_type
action find
entity Q6451040
relation P27
type Q15617994
['Q6451040', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q6451040 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Kyle Anderson
action filter_type
action find
entity Kyle Anderson
relation country of citizenship
type designation for an administrative territorial entity
['Kyle Anderson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Kyle_Anderson property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q6451040,P27,c(Q15617994))
action filter_type
action find
entity Q6451040
relation P27
type Q15617994
The [ANSWER] is Kyle Anderson an inhabitant of
['Q6451040', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q6451040 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
United States of America
The United States of America is Kyle Anderson an inhabitant of
United States of America
action filter_type
action find
entity Kyle Anderson
relation country of citizenship
type designation for an administrative territorial entity
['Kyle Anderson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Kyle_Anderson property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11749665
Q15617994
USER
And what about Krzysztof Rybiński?
(Q11749665,P27,c(Q15617994))
action filter_type
action find
entity Q11749665
relation P27
type Q15617994
['Q11749665', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q11749665 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
Krzysztof Rybiński
action filter_type
action find
entity Krzysztof Rybiński
relation country of citizenship
type designation for an administrative territorial entity
['Krzysztof Rybiński', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Krzysztof_Rybiński property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(Q11749665,P27,c(Q15617994))
action filter_type
action find
entity Q11749665
relation P27
type Q15617994
[ANSWER]
['Q11749665', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q11749665 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
Poland
Poland
action filter_type
action find
entity Krzysztof Rybiński
relation country of citizenship
type designation for an administrative territorial entity
['Krzysztof Rybiński', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Krzysztof_Rybiński property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
How many administrative territories did more number of releases originate than that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find
entity Q36
relation P495
type Q15617994
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:P495 ?y . ?y rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q2031291 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { ?d rdf:type ontology:Q15617994 . resource:Q36 property:P495 ?d } } . FILTER ( ?b > ?p ) }
action count
action greater
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find
entity Poland
relation country of origin
type designation for an administrative territorial entity
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:release } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Poland property:country_of_origin ?d } } . FILTER ( ?b > ?p ) }
[]
designation for an administrative territorial entity release
SYSTEM
17
Q668 Q142 Q55 Q145 Q148 Q159 Q43 Q884 Q33 Q31 Q30 Q34 Q38 Q843 Q17 Q902 Q29
(c(Q2031291),P495,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find
entity Q36
relation P495
type Q15617994
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:P495 ?y . ?y rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q2031291 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { ?d rdf:type ontology:Q15617994 . resource:Q36 property:P495 ?d } } . FILTER ( ?b > ?p ) }
India France Netherlands United Kingdom People's Republic of China Russia Turkey South Korea Finland Belgium United States of America Sweden Italy Pakistan Japan Bangladesh Spain
17
action count
action greater
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find
entity Poland
relation country of origin
type designation for an administrative territorial entity
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:release } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Poland property:country_of_origin ?d } } . FILTER ( ?b > ?p ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q271669 Q486972 Q15617994
USER
How many administrative territories are the eponym of atleast 2 landforms or human settlements ?
(c(Q15617994),P138,c(Q271669)|c(Q486972))
action count
action atleast
action union
action find_tuple_counts
relation P138
type Q15617994
type Q271669
action find_tuple_counts
relation P138
type Q15617994
type Q486972
value 2
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q271669'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { FILTER ( ?p >= 2 ) . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?p ) WHERE { { ?z rdf:type ontology:Q271669 . ?h rdf:type ontology:Q15617994 . ?h property:P138 ?z } UNION { ?h property:P138 ?z . ?h rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q486972 } } GROUP BY ?h } }
action count
action atleast
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type landform
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type human settlement
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'landform'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { FILTER ( ?p >= 2 ) . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?p ) WHERE { { ?z rdf:type ontology:landform . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:named_after ?z } UNION { ?h property:named_after ?z . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:human_settlement } } GROUP BY ?h } }
[]
landform human settlement designation for an administrative territorial entity
SYSTEM
2
Q14697553 Q754
(c(Q15617994),P138,c(Q271669)|c(Q486972))
action count
action atleast
action union
action find_tuple_counts
relation P138
type Q15617994
type Q271669
action find_tuple_counts
relation P138
type Q15617994
type Q486972
value 2
[ANSWER]
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q271669'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { FILTER ( ?p >= 2 ) . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?p ) WHERE { { ?z rdf:type ontology:Q271669 . ?h rdf:type ontology:Q15617994 . ?h property:P138 ?z } UNION { ?h property:P138 ?z . ?h rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q486972 } } GROUP BY ?h } }
Neetzow-Liepen Trinidad and Tobago
2
action count
action atleast
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type landform
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type human settlement
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'landform'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { FILTER ( ?p >= 2 ) . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?p ) WHERE { { ?z rdf:type ontology:landform . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:named_after ?z } UNION { ?h property:named_after ?z . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:human_settlement } } GROUP BY ?h } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19304702 Q11749665
P276 P19
Q56061
USER
Which administrative territories were Krzysztof Rybiński born in or are the place where Kloppertsweg are located ?
OR((Q11749665,P19,c(Q56061)), (Q19304702,P276,c(Q56061)))
action filter_type
action union
action find
entity Q11749665
relation P19
action find
entity Q19304702
relation P276
type Q56061
{'OR': [['Q11749665', 'P19', {'concept': 'Q56061'}], ['Q19304702', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q11749665 property:P19 ?z } UNION { resource:Q19304702 property:P276 ?z } } . ?z rdf:type ontology:Q56061 }
Kloppertsweg Krzysztof Rybiński
action filter_type
action union
action find
entity Krzysztof Rybiński
relation place of birth
action find
entity Kloppertsweg
relation location
type administrative territorial entity
{'OR': [['Krzysztof Rybiński', 'place of birth', {'concept': 'administrative territorial entity'}], ['Kloppertsweg', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Krzysztof_Rybiński property:place_of_birth ?z } UNION { resource:Kloppertsweg property:location ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q270 Q523812
SYSTEM
Warsaw, Oosterhesselen
Q270 Q523812
OR((Q11749665,P19,c(Q56061)), (Q19304702,P276,c(Q56061)))
action filter_type
action union
action find
entity Q11749665
relation P19
action find
entity Q19304702
relation P276
type Q56061
Krzysztof Rybiński were born in [ANSWERS] or are the place where Kloppertsweg are located
{'OR': [['Q11749665', 'P19', {'concept': 'Q56061'}], ['Q19304702', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q11749665 property:P19 ?z } UNION { resource:Q19304702 property:P276 ?z } } . ?z rdf:type ontology:Q56061 }
Warsaw Oosterhesselen
Krzysztof Rybiński were born in Warsaw and Oosterhesselen or are the place where Kloppertsweg are located
Warsaw Oosterhesselen
action filter_type
action union
action find
entity Krzysztof Rybiński
relation place of birth
action find
entity Kloppertsweg
relation location
type administrative territorial entity
{'OR': [['Krzysztof Rybiński', 'place of birth', {'concept': 'administrative territorial entity'}], ['Kloppertsweg', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Krzysztof_Rybiński property:place_of_birth ?z } UNION { resource:Kloppertsweg property:location ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19304702
P17
Q15617994
USER
Which administrative territory is that road situated in ?
(Q270,P17,c(Q15617994)) (Q523812,P17,c(Q15617994))
action filter_type
action find
entity Q19304702
relation P17
type Q15617994
['Q270', 'P17', {'concept': 'Q15617994'}] ['Q523812', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q19304702 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Kloppertsweg
action filter_type
action find
entity Kloppertsweg
relation country
type designation for an administrative territorial entity
['Warsaw', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Oosterhesselen', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Kloppertsweg property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55
SYSTEM
Netherlands
Q55
(Q270,P17,c(Q15617994)) (Q523812,P17,c(Q15617994))
action filter_type
action find
entity Q19304702
relation P17
type Q15617994
That road is situated in [ANSWER]
['Q270', 'P17', {'concept': 'Q15617994'}] ['Q523812', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q19304702 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Netherlands
That road is situated in Netherlands
Netherlands
action filter_type
action find
entity Kloppertsweg
relation country
type designation for an administrative territorial entity
['Warsaw', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Oosterhesselen', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Kloppertsweg property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q838948 Q3516658
USER
Which occupations are expressed in atmost 10 works of art and heraldic symbols ?
(c(Q838948)|c(Q3516658),P180,c(Q12737077))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
value 10
[[{'concept': 'Q838948'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?s ) WHERE { VALUES ( ?l ) { ( ontology:Q838948 ) ( ontology:Q3516658 ) } . ?a rdf:type ?l } GROUP BY ?h } . FILTER ( ?s <= 10 ) }
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
value 10
[[{'concept': 'work of art'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?s ) WHERE { VALUES ( ?l ) { ( ontology:work_of_art ) ( ontology:heraldic_symbol ) } . ?a rdf:type ?l } GROUP BY ?h } . FILTER ( ?s <= 10 ) }
[]
occupation work of art heraldic symbol
Q131512 Q186360 Q242468
SYSTEM
farmer, nurse, tailor
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 Q1250916 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 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 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(Q838948)|c(Q3516658),P180,c(Q12737077))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
value 10
[ANSWERS] are expressed in atmost 10 works of art and heraldic symbols
[[{'concept': 'Q838948'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?s ) WHERE { VALUES ( ?l ) { ( ontology:Q838948 ) ( ontology:Q3516658 ) } . ?a rdf:type ?l } GROUP BY ?h } . FILTER ( ?s <= 10 ) }
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 warrior 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 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 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
Farmer, nurse and tailor are expressed in atmost 10 works of art and heraldic symbols
farmer nurse tailor
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
value 10
[[{'concept': 'work of art'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?s ) WHERE { VALUES ( ?l ) { ( ontology:work_of_art ) ( ontology:heraldic_symbol ) } . ?a rdf:type ?l } GROUP BY ?h } . FILTER ( ?s <= 10 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q732577 Q838948
USER
How many occupations were the main subjects of atleast 8 publications and works of art 's work ?
(c(Q732577)|c(Q838948),P921,c(Q12737077))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 8
[[{'concept': 'Q732577'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?c ) WHERE { ?k rdf:type ?s . VALUES ( ?s ) { ( ontology:Q732577 ) ( ontology:Q838948 ) } } GROUP BY ?e } . FILTER ( ?c >= 8 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 8
[[{'concept': 'publication'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?c ) WHERE { ?k rdf:type ?s . VALUES ( ?s ) { ( ontology:publication ) ( ontology:work_of_art ) } } GROUP BY ?e } . FILTER ( ?c >= 8 ) }
[]
occupation publication work of art
SYSTEM
5
Q33999 Q9402 Q164236 Q16746569 Q33231
(c(Q732577)|c(Q838948),P921,c(Q12737077))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 8
[ANSWER]
[[{'concept': 'Q732577'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?c ) WHERE { ?k rdf:type ?s . VALUES ( ?s ) { ( ontology:Q732577 ) ( ontology:Q838948 ) } } GROUP BY ?e } . FILTER ( ?c >= 8 ) }
actor ninja war correspondent high school student photographer
5
action count
action atleast
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 8
[[{'concept': 'publication'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?c ) WHERE { ?k rdf:type ?s . VALUES ( ?s ) { ( ontology:publication ) ( ontology:work_of_art ) } } GROUP BY ?e } . FILTER ( ?c >= 8 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q270
P36
Q7275
USER
Which states have Warsaw as their capital ?
(c(Q7275),P36,Q270)
action filter_type
action find_reverse
entity Q270
relation P36
type Q7275
[{'concept': 'Q7275'}, 'P36', 'Q270']
SELECT DISTINCT ?v WHERE { ?v property:P36 resource:Q270 . ?v rdf:type ontology:Q7275 }
Warsaw
action filter_type
action find_reverse
entity Warsaw
relation capital
type state
[{'concept': 'state'}, 'capital', 'Warsaw']
SELECT DISTINCT ?v WHERE { ?v property:capital resource:Warsaw . ?v rdf:type ontology:state }
[]
state
Q696908 Q172107 Q211274
SYSTEM
Kingdom of Poland, Polish–Lithuanian Commonwealth, People's Republic of Poland
Q207272 Q172107 Q211274 Q696908
(c(Q7275),P36,Q270)
action filter_type
action find_reverse
entity Q270
relation P36
type Q7275
[ANSWERS] have Warsaw as their capital
[{'concept': 'Q7275'}, 'P36', 'Q270']
SELECT DISTINCT ?v WHERE { ?v property:P36 resource:Q270 . ?v rdf:type ontology:Q7275 }
Second Polish Republic Polish–Lithuanian Commonwealth People's Republic of Poland Kingdom of Poland
Kingdom of Poland, Polish–Lithuanian Commonwealth and People's Republic of Poland have Warsaw as their capital
Kingdom of Poland Polish–Lithuanian Commonwealth People's Republic of Poland
action filter_type
action find_reverse
entity Warsaw
relation capital
type state
[{'concept': 'state'}, 'capital', 'Warsaw']
SELECT DISTINCT ?v WHERE { ?v property:capital resource:Warsaw . ?v rdf:type ontology:state }
[]