Simple Question (Direct)
Simple Question
Q4371485
P69
Q2385804
USER
What is the educational institution where Serge Polyanichko was educated ?
(Q4371485,P69,c(Q2385804))
action filter_type
action find
entity Q4371485
relation P69
type Q2385804
['Q4371485', 'P69', {'concept': 'Q2385804'}]
SELECT DISTINCT ?v WHERE { resource:Q4371485 property:P69 ?v . ?v rdf:type ontology:Q2385804 }
Serge Polyanichko
action filter_type
action find
entity Serge Polyanichko
relation educated at
type educational institution
['Serge Polyanichko', 'educated at', {'concept': 'educational institution'}]
SELECT DISTINCT ?v WHERE { resource:Serge_Polyanichko property:educated_at ?v . ?v rdf:type ontology:educational_institution }
[]
educational institution
Q4438728
SYSTEM
Special Music School of the St. Petersburg Conservatory
Q4438728
(Q4371485,P69,c(Q2385804))
action filter_type
action find
entity Q4371485
relation P69
type Q2385804
The educational institution Serge Polyanichko was educated is the [ANSWER]
['Q4371485', 'P69', {'concept': 'Q2385804'}]
SELECT DISTINCT ?v WHERE { resource:Q4371485 property:P69 ?v . ?v rdf:type ontology:Q2385804 }
Special Music School of the St. Petersburg Conservatory
The educational institution Serge Polyanichko was educated is the Special Music School of the St. Petersburg Conservatory
Special Music School of the St. Petersburg Conservatory
action filter_type
action find
entity Serge Polyanichko
relation educated at
type educational institution
['Serge Polyanichko', 'educated at', {'concept': 'educational institution'}]
SELECT DISTINCT ?v WHERE { resource:Serge_Polyanichko property:educated_at ?v . ?v rdf:type ontology:educational_institution }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4371485
P106
Q12737077
USER
Which occupations have that person as his/her 's career ?
(Q4438728,P106,c(Q12737077))
action filter_type
action find
entity Q4371485
relation P106
type Q12737077
['Q4438728', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q4371485 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Serge Polyanichko
action filter_type
action find
entity Serge Polyanichko
relation occupation
type occupation
['Special Music School of the St. Petersburg Conservatory', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Serge_Polyanichko property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q158852 Q19729565
SYSTEM
conductor, hornist
Q158852 Q19729565
(Q4438728,P106,c(Q12737077))
action filter_type
action find
entity Q4371485
relation P106
type Q12737077
[ANSWERS] have that person as his/her 's career
['Q4438728', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q4371485 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
conductor hornist
Conductor and hornist have that person as his/her 's career
conductor hornist
action filter_type
action find
entity Serge Polyanichko
relation occupation
type occupation
['Special Music School of the St. Petersburg Conservatory', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Serge_Polyanichko property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3818728 Q4371485
P27
Q15617994
USER
Which administrative territories are Serge Polyanichko or Abdelmajid Benjelloun a civilian of ?
OR((Q4371485,P27,c(Q15617994)), (Q3818728,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4371485
relation P27
action find
entity Q3818728
relation P27
type Q15617994
{'OR': [['Q4371485', 'P27', {'concept': 'Q15617994'}], ['Q3818728', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { ?d property:P27 ?k . VALUES ( ?d ) { ( resource:Q4371485 ) ( resource:Q3818728 ) } } . ?k rdf:type ontology:Q15617994 }
Abdelmajid Benjelloun Serge Polyanichko
action filter_type
action union
action find
entity Serge Polyanichko
relation country of citizenship
action find
entity Abdelmajid Benjelloun
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Serge Polyanichko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Abdelmajid Benjelloun', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { ?d property:country_of_citizenship ?k . VALUES ( ?d ) { ( resource:Serge_Polyanichko ) ( resource:Abdelmajid_Benjelloun ) } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159 Q1028
SYSTEM
Russia, Morocco
Q159 Q1028
OR((Q4371485,P27,c(Q15617994)), (Q3818728,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4371485
relation P27
action find
entity Q3818728
relation P27
type Q15617994
[ANSWERS] are Serge Polyanichko or Abdelmajid Benjelloun a civilian of
{'OR': [['Q4371485', 'P27', {'concept': 'Q15617994'}], ['Q3818728', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { ?d property:P27 ?k . VALUES ( ?d ) { ( resource:Q4371485 ) ( resource:Q3818728 ) } } . ?k rdf:type ontology:Q15617994 }
Russia Morocco
Russia and Morocco are Serge Polyanichko or Abdelmajid Benjelloun a civilian of
Russia Morocco
action filter_type
action union
action find
entity Serge Polyanichko
relation country of citizenship
action find
entity Abdelmajid Benjelloun
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Serge Polyanichko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Abdelmajid Benjelloun', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { ?d property:country_of_citizenship ?k . VALUES ( ?d ) { ( resource:Serge_Polyanichko ) ( resource:Abdelmajid_Benjelloun ) } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3818728
P21
Q290
USER
What is the sex of Abdelmajid Benjelloun ?
(Q159,P21,c(Q290)) (Q1028,P21,c(Q290))
action filter_type
action find
entity Q3818728
relation P21
type Q290
['Q159', 'P21', {'concept': 'Q290'}] ['Q1028', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q3818728 property:P21 ?b . ?b rdf:type ontology:Q290 }
Abdelmajid Benjelloun
action filter_type
action find
entity Abdelmajid Benjelloun
relation gender
type sex
['Russia', 'gender', {'concept': 'sex'}] ['Morocco', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Abdelmajid_Benjelloun property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q159,P21,c(Q290)) (Q1028,P21,c(Q290))
action filter_type
action find
entity Q3818728
relation P21
type Q290
The sex of Abdelmajid Benjelloun is the [ANSWER]
['Q159', 'P21', {'concept': 'Q290'}] ['Q1028', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q3818728 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
The sex of Abdelmajid Benjelloun is the male
male
action filter_type
action find
entity Abdelmajid Benjelloun
relation gender
type sex
['Russia', 'gender', {'concept': 'sex'}] ['Morocco', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Abdelmajid_Benjelloun property:gender ?b . ?b rdf:type ontology:sex }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2340797
P180
Q12737077 Q838948 Q2342494
USER
Which occupations are depicted in lesser number of works of art and collectables than quarryman ?
(c(Q838948)|c(Q2342494),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q2340797
relation P180
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?m ) WHERE { { ?e property:P180 ?j . ?j rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q838948 } UNION { ?e property:P180 ?j . ?j rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q2342494 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { ?a property:P180 resource:Q2340797 . { { ?a rdf:type ontology:Q838948 } UNION { ?a rdf:type ontology:Q2342494 } } } } . FILTER ( ?m < ?i ) }
quarryman
action less
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 collectable
action count
action filter_multi_types
action find_reverse
entity quarryman
relation depicts
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?m ) WHERE { { ?e property:depicts ?j . ?j rdf:type ontology:occupation . ?e rdf:type ontology:work_of_art } UNION { ?e property:depicts ?j . ?j rdf:type ontology:occupation . ?e rdf:type ontology:collectable } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { ?a property:depicts resource:quarryman . { { ?a rdf:type ontology:work_of_art } UNION { ?a rdf:type ontology:collectable } } } } . FILTER ( ?m < ?i ) }
[]
occupation work of art collectable
Q186360 Q242468 Q182436
SYSTEM
nurse, tailor, librarian
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q1569439 Q16735601 Q37226 Q1401609 Q152355 Q1218776 Q1124183 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q4610556 Q161944 Q472898 Q45199 Q7358 Q19968805 Q4504549 Q842782 Q185196 Q486748 Q328325 Q483501 Q215536 Q212238 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q19723482 Q170790 Q1139055 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q327321 Q549322 Q327029 Q733786 Q2309900 Q5371902 Q17126809 Q12097 Q848550 Q386854 Q202648 Q1753370 Q107711 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q548320 Q550594 Q3074722 Q19862215 Q537575 Q20826540 Q715301 Q11338576 Q14009165 Q15954519 Q10833314 Q1318187 Q29182 Q326358 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q15725121 Q185992 Q133485 Q674067 Q901 Q589897 Q4594605 Q242468 Q2596569 Q1234713 Q848466 Q116 Q1509714 Q152002 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q11063 Q774306 Q2276446 Q207651 Q18575684 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q253567 Q3439798 Q2191547 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q765541 Q2011889 Q49476 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q191808 Q182436 Q2259532 Q811122 Q373017 Q2180295 Q1294787 Q1630100 Q2627286 Q437512 Q13414980 Q849424 Q7622988 Q157195
(c(Q838948)|c(Q2342494),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q2340797
relation P180
type Q838948
type Q2342494
[ANSWERS] are depicted in lesser number of works of art and collectables than quarryman
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?m ) WHERE { { ?e property:P180 ?j . ?j rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q838948 } UNION { ?e property:P180 ?j . ?j rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q2342494 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { ?a property:P180 resource:Q2340797 . { { ?a rdf:type ontology:Q838948 } UNION { ?a rdf:type ontology:Q2342494 } } } } . FILTER ( ?m < ?i ) }
fiddler acrobat milkmaid worker standard-bearer sheep shearer florist teacher vaquero cobbler arriero lumberjack sewing executor astronaut cooper house painter organist double-bassist actor valet sex worker woman of letters ventriloquist amateur wrestler king of marksmen geographer Archbishop of Canterbury minister receptionist milkman coachman model deacon wet nurse sailor clown spinner religious servant detective midwife pianist stonemason artist merchant civil servant abbé architect street musician nurse parson mandolinist mathematician tax collector mayor bell-ringer miner beekeeper washerwoman cellist bricklayer torero mechanic monk helmsman harpsichordist rescuer king VOC Opperhoofd in Japan drummer referee curate firefighter dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja friar fishmonger recorder player laborer gravedigger erudite comics artist boxer trapper alchemist tennis player scrivener bishop joiner goatherd pedicure Catholic priest courtesan member of parliament bartender clogmaker peddler reaper condottiero canon chess player bassoonist mufti rabbi mime artist scientist mahout magistrate tailor housekeeper theologian courier monarch porter pastor courtier judge abbot matador goldsmith astronomer surgeon domestic worker cook executioner embroiderer exotic dancer lyricist plasterer gardener composer miller tightrope walker maid apprentice King of France picador woodcutter lacemaker Snake charming carpenter school teacher baker knife grinder police officer guard Maid of honour kazasker madam archbishop boatman salesperson cricketer aviator milkmaid nun librarian cleric construction worker basketry mail carrier artisan art model bushranger weaver Australian-rules footballer sea captain street artist waiting staff
Nurse, tailor and librarian are depicted in lesser number of works of art and collectables than quarryman
nurse tailor librarian
action less
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 collectable
action count
action filter_multi_types
action find_reverse
entity quarryman
relation depicts
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?m ) WHERE { { ?e property:depicts ?j . ?j rdf:type ontology:occupation . ?e rdf:type ontology:work_of_art } UNION { ?e property:depicts ?j . ?j rdf:type ontology:occupation . ?e rdf:type ontology:collectable } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { ?a property:depicts resource:quarryman . { { ?a rdf:type ontology:work_of_art } UNION { ?a rdf:type ontology:collectable } } } } . FILTER ( ?m < ?i ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P106
Q636497 Q188451
USER
How many stock characters or music genres have the profession as that occupation ?
(c(Q636497),P106,Q186360) (c(Q188451),P106,Q186360) (c(Q636497),P106,Q186360) (c(Q188451),P106,Q186360) (c(Q636497),P106,Q242468) (c(Q188451),P106,Q242468) (c(Q636497),P106,Q182436) (c(Q188451),P106,Q182436)
[{'concept': 'Q636497'}, 'P106', 'Q186360'] [{'concept': 'Q188451'}, 'P106', 'Q186360'] [{'concept': 'Q636497'}, 'P106', 'Q186360'] [{'concept': 'Q188451'}, 'P106', 'Q186360'] [{'concept': 'Q636497'}, 'P106', 'Q242468'] [{'concept': 'Q188451'}, 'P106', 'Q242468'] [{'concept': 'Q636497'}, 'P106', 'Q182436'] [{'concept': 'Q188451'}, 'P106', 'Q182436']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q528892 resource:Q186360 } UNION { ?y property:Q528892 resource:Q186360 } UNION { ?z property:Q528892 resource:Q186360 } UNION { ?y property:Q528892 resource:Q186360 } UNION { ?z property:Q528892 resource:Q242468 } UNION { ?y property:Q528892 resource:Q242468 } UNION { ?z property:Q528892 resource:Q182436 } UNION { ?y property:Q528892 resource:Q182436 } } . ?z rdf:type ontology:Q636497 . ?y rdf:type ontology:Q188451 }
[{'concept': 'stock character'}, 'occupation', 'nurse'] [{'concept': 'music genre'}, 'occupation', 'nurse'] [{'concept': 'stock character'}, 'occupation', 'nurse'] [{'concept': 'music genre'}, 'occupation', 'nurse'] [{'concept': 'stock character'}, 'occupation', 'tailor'] [{'concept': 'music genre'}, 'occupation', 'tailor'] [{'concept': 'stock character'}, 'occupation', 'librarian'] [{'concept': 'music genre'}, 'occupation', 'librarian']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:occupation resource:nurse } UNION { ?y property:occupation resource:nurse } UNION { ?z property:occupation resource:nurse } UNION { ?y property:occupation resource:nurse } UNION { ?z property:occupation resource:tailor } UNION { ?y property:occupation resource:tailor } UNION { ?z property:occupation resource:librarian } UNION { ?y property:occupation resource:librarian } } . ?z rdf:type ontology:stock_character . ?y rdf:type ontology:music_genre }
[]
stock character music genre
Quantitative|Count|Mult. entity type|Clarification
Q182436
SYSTEM
Did you mean librarian ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q528892 resource:Q186360 } UNION { ?y property:Q528892 resource:Q186360 } UNION { ?z property:Q528892 resource:Q186360 } UNION { ?y property:Q528892 resource:Q186360 } UNION { ?z property:Q528892 resource:Q242468 } UNION { ?y property:Q528892 resource:Q242468 } UNION { ?z property:Q528892 resource:Q182436 } UNION { ?y property:Q528892 resource:Q182436 } } . ?z rdf:type ontology:Q636497 . ?y rdf:type ontology:Q188451 }
Did you mean librarian ?
librarian
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:occupation resource:nurse } UNION { ?y property:occupation resource:nurse } UNION { ?z property:occupation resource:nurse } UNION { ?y property:occupation resource:nurse } UNION { ?z property:occupation resource:tailor } UNION { ?y property:occupation resource:tailor } UNION { ?z property:occupation resource:librarian } UNION { ?y property:occupation resource:librarian } } . ?z rdf:type ontology:stock_character . ?y rdf:type ontology:music_genre }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant nurse. Could you tell me the answer for that?
(c(Q636497),P106,Q186360) (c(Q188451),P106,Q186360) (c(Q636497),P106,Q186360) (c(Q188451),P106,Q186360) (c(Q636497),P106,Q242468) (c(Q188451),P106,Q242468) (c(Q636497),P106,Q182436) (c(Q188451),P106,Q182436)
Q186360
[{'concept': 'Q636497'}, 'P106', 'Q186360'] [{'concept': 'Q188451'}, 'P106', 'Q186360'] [{'concept': 'Q636497'}, 'P106', 'Q186360'] [{'concept': 'Q188451'}, 'P106', 'Q186360'] [{'concept': 'Q636497'}, 'P106', 'Q242468'] [{'concept': 'Q188451'}, 'P106', 'Q242468'] [{'concept': 'Q636497'}, 'P106', 'Q182436'] [{'concept': 'Q188451'}, 'P106', 'Q182436']
[{'concept': 'stock character'}, 'occupation', 'nurse'] [{'concept': 'music genre'}, 'occupation', 'nurse'] [{'concept': 'stock character'}, 'occupation', 'nurse'] [{'concept': 'music genre'}, 'occupation', 'nurse'] [{'concept': 'stock character'}, 'occupation', 'tailor'] [{'concept': 'music genre'}, 'occupation', 'tailor'] [{'concept': 'stock character'}, 'occupation', 'librarian'] [{'concept': 'music genre'}, 'occupation', 'librarian']
[]
SYSTEM
2
Q7655446 Q7070198
(c(Q636497),P106,Q186360) (c(Q188451),P106,Q186360) (c(Q636497),P106,Q186360) (c(Q188451),P106,Q186360) (c(Q636497),P106,Q242468) (c(Q188451),P106,Q242468) (c(Q636497),P106,Q182436) (c(Q188451),P106,Q182436)
[ANSWER]
[{'concept': 'Q636497'}, 'P106', 'Q186360'] [{'concept': 'Q188451'}, 'P106', 'Q186360'] [{'concept': 'Q636497'}, 'P106', 'Q186360'] [{'concept': 'Q188451'}, 'P106', 'Q186360'] [{'concept': 'Q636497'}, 'P106', 'Q242468'] [{'concept': 'Q188451'}, 'P106', 'Q242468'] [{'concept': 'Q636497'}, 'P106', 'Q182436'] [{'concept': 'Q188451'}, 'P106', 'Q182436']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q528892 resource:Q186360 } UNION { ?y property:Q528892 resource:Q186360 } UNION { ?z property:Q528892 resource:Q186360 } UNION { ?y property:Q528892 resource:Q186360 } UNION { ?z property:Q528892 resource:Q242468 } UNION { ?y property:Q528892 resource:Q242468 } UNION { ?z property:Q528892 resource:Q182436 } UNION { ?y property:Q528892 resource:Q182436 } } . ?z rdf:type ontology:Q636497 . ?y rdf:type ontology:Q188451 }
Sweet Polly Oliver Nurse Ratched
2
[{'concept': 'stock character'}, 'occupation', 'nurse'] [{'concept': 'music genre'}, 'occupation', 'nurse'] [{'concept': 'stock character'}, 'occupation', 'nurse'] [{'concept': 'music genre'}, 'occupation', 'nurse'] [{'concept': 'stock character'}, 'occupation', 'tailor'] [{'concept': 'music genre'}, 'occupation', 'tailor'] [{'concept': 'stock character'}, 'occupation', 'librarian'] [{'concept': 'music genre'}, 'occupation', 'librarian']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:occupation resource:nurse } UNION { ?y property:occupation resource:nurse } UNION { ?z property:occupation resource:nurse } UNION { ?y property:occupation resource:nurse } UNION { ?z property:occupation resource:tailor } UNION { ?y property:occupation resource:tailor } UNION { ?z property:occupation resource:librarian } UNION { ?y property:occupation resource:librarian } } . ?z rdf:type ontology:stock_character . ?y rdf:type ontology:music_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q159
P123
Q166142
USER
Which application was issued by Russia ?
(c(Q166142),P123,Q159)
action filter_type
action find_reverse
entity Q159
relation P123
type Q166142
[{'concept': 'Q166142'}, 'P123', 'Q159']
SELECT DISTINCT ?t WHERE { ?t property:P123 resource:Q159 . ?t rdf:type ontology:Q166142 }
Russia
action filter_type
action find_reverse
entity Russia
relation publisher
type application
[{'concept': 'application'}, 'publisher', 'Russia']
SELECT DISTINCT ?t WHERE { ?t property:publisher resource:Russia . ?t rdf:type ontology:application }
[]
application
Q498469
SYSTEM
Postal III
Q498469
(c(Q166142),P123,Q159)
action filter_type
action find_reverse
entity Q159
relation P123
type Q166142
[ANSWER] was issued by Russia
[{'concept': 'Q166142'}, 'P123', 'Q159']
SELECT DISTINCT ?t WHERE { ?t property:P123 resource:Q159 . ?t rdf:type ontology:Q166142 }
Postal III
Postal III was issued by Russia
Postal III
action filter_type
action find_reverse
entity Russia
relation publisher
type application
[{'concept': 'application'}, 'publisher', 'Russia']
SELECT DISTINCT ?t WHERE { ?t property:publisher resource:Russia . ?t rdf:type ontology:application }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q159
P1376
Q56061
USER
Which administrative territory is the county seat of that administrative territory ?
(c(Q56061),P1376,Q498469)
action filter_type
action find_reverse
entity Q159
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q498469']
SELECT DISTINCT ?z WHERE { ?z property:P1376 resource:Q159 . ?z rdf:type ontology:Q56061 }
Russia
action filter_type
action find_reverse
entity Russia
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Postal III']
SELECT DISTINCT ?z WHERE { ?z property:capital_of resource:Russia . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649
SYSTEM
Moscow
Q649
(c(Q56061),P1376,Q498469)
action filter_type
action find_reverse
entity Q159
relation P1376
type Q56061
City [ANSWER] is the county seat of that administrative territory
[{'concept': 'Q56061'}, 'P1376', 'Q498469']
SELECT DISTINCT ?z WHERE { ?z property:P1376 resource:Q159 . ?z rdf:type ontology:Q56061 }
Moscow
City Moscow is the county seat of that administrative territory
Moscow
action filter_type
action find_reverse
entity Russia
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Postal III']
SELECT DISTINCT ?z WHERE { ?z property:capital_of resource:Russia . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4438728
P17
Q15617994
USER
Which administrative territory does Special Music School of the St. Petersburg Conservatory belong to ?
(Q4438728,P17,c(Q15617994))
action filter_type
action find
entity Q4438728
relation P17
type Q15617994
['Q4438728', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q4438728 property:P17 ?o }
Special Music School of the St. Petersburg Conservatory
action filter_type
action find
entity Special Music School of the St. Petersburg Conservatory
relation country
type designation for an administrative territorial entity
['Special Music School of the St. Petersburg Conservatory', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Special_Music_School_of_the_St._Petersburg_Conservatory property:country ?o }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
(Q4438728,P17,c(Q15617994))
action filter_type
action find
entity Q4438728
relation P17
type Q15617994
Special Music School of the St. Petersburg Conservatory belongs to the [ANSWER]
['Q4438728', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q4438728 property:P17 ?o }
Russia
Special Music School of the St. Petersburg Conservatory belongs to the Russia
Russia
action filter_type
action find
entity Special Music School of the St. Petersburg Conservatory
relation country
type designation for an administrative territorial entity
['Special Music School of the St. Petersburg Conservatory', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Special_Music_School_of_the_St._Petersburg_Conservatory property:country ?o }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16453407
Q15617994
USER
And also tell me about Jodaugiai?
(Q16453407,P17,c(Q15617994))
action filter_type
action find
entity Q16453407
relation P17
type Q15617994
['Q16453407', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q16453407 property:P17 ?r }
Jodaugiai
action filter_type
action find
entity Jodaugiai
relation country
type designation for an administrative territorial entity
['Jodaugiai', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jodaugiai property:country ?r }
[]
designation for an administrative territorial entity
Q37
SYSTEM
Lithuania
Q37
(Q16453407,P17,c(Q15617994))
action filter_type
action find
entity Q16453407
relation P17
type Q15617994
[ANSWER]
['Q16453407', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q16453407 property:P17 ?r }
Lithuania
Lithuania
action filter_type
action find
entity Jodaugiai
relation country
type designation for an administrative territorial entity
['Jodaugiai', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jodaugiai property:country ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q37
P840
Q838948
USER
Which work of art has its setting located at that administrative territory ?
(c(Q838948),P840,Q37)
action filter_type
action find_reverse
entity Q37
relation P840
type Q838948
[{'concept': 'Q838948'}, 'P840', 'Q37']
SELECT DISTINCT ?k WHERE { ?k property:P840 resource:Q37 . ?k rdf:type ontology:Q838948 }
Lithuania
action filter_type
action find_reverse
entity Lithuania
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Lithuania']
SELECT DISTINCT ?k WHERE { ?k property:narrative_location resource:Lithuania . ?k rdf:type ontology:work_of_art }
[]
work of art
Q17098977
SYSTEM
Redirected
Q17098977
(c(Q838948),P840,Q37)
action filter_type
action find_reverse
entity Q37
relation P840
type Q838948
[ANSWER] has its setting located at that administrative territory
[{'concept': 'Q838948'}, 'P840', 'Q37']
SELECT DISTINCT ?k WHERE { ?k property:P840 resource:Q37 . ?k rdf:type ontology:Q838948 }
Redirected
Redirected has its setting located at that administrative territory
Redirected
action filter_type
action find_reverse
entity Lithuania
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Lithuania']
SELECT DISTINCT ?k WHERE { ?k property:narrative_location resource:Lithuania . ?k rdf:type ontology:work_of_art }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q17098977 Q575404
P840
Q56061
USER
Is Redirected set in St. Francisville ?
(Q17098977,P840,Q575404)
action is_in
entity Q575404
action find
entity Q17098977
relation P840
['Q17098977', 'P840', 'Q575404']
ASK WHERE { resource:Q17098977 property:P840 resource:Q575404 }
Redirected St. Francisville
action is_in
entity St. Francisville
action find
entity Redirected
relation narrative location
['Redirected', 'narrative location', 'St. Francisville']
ASK WHERE { resource:Redirected property:narrative_location resource:St._Francisville }
[]
administrative territorial entity
SYSTEM
NO
(Q17098977,P840,Q575404)
action is_in
entity Q575404
action find
entity Q17098977
relation P840
[ANSWER]
['Q17098977', 'P840', 'Q575404']
ASK WHERE { resource:Q17098977 property:P840 resource:Q575404 }
No
action is_in
entity St. Francisville
action find
entity Redirected
relation narrative location
['Redirected', 'narrative location', 'St. Francisville']
ASK WHERE { resource:Redirected property:narrative_location resource:St._Francisville }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q30
P122
Q4164871 Q15617994 Q15617994
USER
Which administrative territories have greater number of positions and administrative territories as the type of government than United States of America ?
(c(Q15617994),P122,c(Q4164871)|c(Q15617994))
action greater
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q30
relation P122
type Q4164871
type Q15617994
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?u ) WHERE { ?c rdf:type ?x . VALUES ( ?x ) { ( ontology:Q4164871 ) ( ontology:Q15617994 ) } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:Q30 property:P122 ?w . { { ?w rdf:type ontology:Q4164871 } UNION { ?w rdf:type ontology:Q15617994 } } } } . FILTER ( ?u > ?p ) }
United States of America
action greater
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity United States of America
relation basic form of government
type position
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?u ) WHERE { ?c rdf:type ?x . VALUES ( ?x ) { ( ontology:position ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:United_States_of_America property:basic_form_of_government ?w . { { ?w rdf:type ontology:position } UNION { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?u > ?p ) }
[]
position designation for an administrative territorial entity designation for an administrative territorial entity
Q889 Q815731 Q689837
SYSTEM
Afghanistan, Principality of Bulgaria, Spanish Sahara
Q889 Q689837 Q313175 Q815731 Q1483510 Q696651
(c(Q15617994),P122,c(Q4164871)|c(Q15617994))
action greater
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q30
relation P122
type Q4164871
type Q15617994
[ANSWERS] have greater number of positions and administrative territories as the type of government than United States of America
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?u ) WHERE { ?c rdf:type ?x . VALUES ( ?x ) { ( ontology:Q4164871 ) ( ontology:Q15617994 ) } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:Q30 property:P122 ?w . { { ?w rdf:type ontology:Q4164871 } UNION { ?w rdf:type ontology:Q15617994 } } } } . FILTER ( ?u > ?p ) }
Afghanistan Spanish Sahara Saxe-Lauenburg Principality of Bulgaria Principality of Wales Saxe-Eisenach
Afghanistan, Principality of Bulgaria and Spanish Sahara have greater number of positions and administrative territories as the type of government than United States of America
Afghanistan Principality of Bulgaria Spanish Sahara
action greater
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity United States of America
relation basic form of government
type position
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?u ) WHERE { ?c rdf:type ?x . VALUES ( ?x ) { ( ontology:position ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:United_States_of_America property:basic_form_of_government ?w . { { ?w rdf:type ontology:position } UNION { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?u > ?p ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q958
P122
Q4164871 Q15617994 Q15617994
USER
And also tell me about South Sudan?
(c(Q15617994),P122,c(Q4164871)|c(Q15617994))
action greater
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q958
relation P122
type Q4164871
type Q15617994
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:Q958 property:P122 ?q . { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:Q4164871 ) ( ontology:Q15617994 ) } } } } . FILTER ( ?z > ?e ) . { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?z ) WHERE { { ?s property:P122 ?f . ?s rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q4164871 } UNION { ?s property:P122 ?f . ?s rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } } GROUP BY ?s } }
South Sudan
action greater
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity South Sudan
relation basic form of government
type position
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:South_Sudan property:basic_form_of_government ?q . { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:position ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } . FILTER ( ?z > ?e ) . { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?z ) WHERE { { ?s property:basic_form_of_government ?f . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:position } UNION { ?s property:basic_form_of_government ?f . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?s } }
[]
position designation for an administrative territorial entity designation for an administrative territorial entity
Q889 Q815731 Q689837
SYSTEM
Afghanistan, Principality of Bulgaria, Spanish Sahara
Q889 Q689837 Q313175 Q815731 Q1483510 Q696651
(c(Q15617994),P122,c(Q4164871)|c(Q15617994))
action greater
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q958
relation P122
type Q4164871
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:Q958 property:P122 ?q . { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:Q4164871 ) ( ontology:Q15617994 ) } } } } . FILTER ( ?z > ?e ) . { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?z ) WHERE { { ?s property:P122 ?f . ?s rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q4164871 } UNION { ?s property:P122 ?f . ?s rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } } GROUP BY ?s } }
Afghanistan Spanish Sahara Saxe-Lauenburg Principality of Bulgaria Principality of Wales Saxe-Eisenach
Afghanistan Principality of Bulgaria Spanish Sahara
action greater
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity South Sudan
relation basic form of government
type position
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:South_Sudan property:basic_form_of_government ?q . { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:position ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } . FILTER ( ?z > ?e ) . { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?z ) WHERE { { ?s property:basic_form_of_government ?f . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:position } UNION { ?s property:basic_form_of_government ?f . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?s } }
[]