Simple Question (Direct)
Simple Question
Q4723393
P106
Q12737077
USER
Which occupation has Alfred Sabin as his/her 's career ?
(Q4723393,P106,c(Q12737077))
action filter_type
action find
entity Q4723393
relation P106
type Q12737077
['Q4723393', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q4723393 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Alfred Sabin
action filter_type
action find
entity Alfred Sabin
relation occupation
type occupation
['Alfred Sabin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Alfred_Sabin property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q4723393,P106,c(Q12737077))
action filter_type
action find
entity Q4723393
relation P106
type Q12737077
As [ANSWER] has Alfred Sabin as his/her 's career
['Q4723393', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q4723393 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
association football player
As association football player has Alfred Sabin as his/her 's career
association football player
action filter_type
action find
entity Alfred Sabin
relation occupation
type occupation
['Alfred Sabin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Alfred_Sabin property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4723393
P21
Q290
USER
Which sex does Alfred Sabin belong to ?
(Q4723393,P21,c(Q290))
action filter_type
action find
entity Q4723393
relation P21
type Q290
['Q4723393', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q4723393 property:P21 ?n . ?n rdf:type ontology:Q290 }
Alfred Sabin
action filter_type
action find
entity Alfred Sabin
relation gender
type sex
['Alfred Sabin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Alfred_Sabin property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4723393,P21,c(Q290))
action filter_type
action find
entity Q4723393
relation P21
type Q290
Alfred Sabin belongs to [ANSWER]
['Q4723393', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q4723393 property:P21 ?n . ?n rdf:type ontology:Q290 }
male
Alfred Sabin belongs to male
male
action filter_type
action find
entity Alfred Sabin
relation gender
type sex
['Alfred Sabin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Alfred_Sabin property:gender ?n . ?n rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4723393
P19
Q56061
USER
Where was that person born ?
(Q6581097,P19,c(Q56061))
action filter_type
action find
entity Q4723393
relation P19
type Q56061
['Q6581097', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q4723393 property:P19 ?q . ?q rdf:type ontology:Q56061 }
Alfred Sabin
action filter_type
action find
entity Alfred Sabin
relation place of birth
type administrative territorial entity
['male', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Alfred_Sabin property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1857563
SYSTEM
Oldbury
Q1857563
(Q6581097,P19,c(Q56061))
action filter_type
action find
entity Q4723393
relation P19
type Q56061
That person was born at [ANSWER]
['Q6581097', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q4723393 property:P19 ?q . ?q rdf:type ontology:Q56061 }
Oldbury
That person was born at Oldbury
Oldbury
action filter_type
action find
entity Alfred Sabin
relation place of birth
type administrative territorial entity
['male', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Alfred_Sabin property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1857563 Q581806 Q179890
P17
Q15617994
USER
Is that administrative territory situated in Rimbach and Eggingen ?
(Q1857563,P17,Q581806) (Q1857563,P17,Q179890)
action is_in
entity Q1857563
action intersection
action find_reverse
entity Q581806
relation P17
action find_reverse
entity Q179890
relation P17
['Q1857563', 'P17', 'Q581806'] ['Q1857563', 'P17', 'Q179890']
ASK WHERE { resource:Q1857563 property:P17 resource:Q581806 . resource:Q1857563 property:P17 resource:Q179890 }
Oldbury Rimbach Eggingen
action is_in
entity Oldbury
action intersection
action find_reverse
entity Rimbach
relation country
action find_reverse
entity Eggingen
relation country
['Oldbury', 'country', 'Rimbach'] ['Oldbury', 'country', 'Eggingen']
ASK WHERE { resource:Oldbury property:country resource:Rimbach . resource:Oldbury property:country resource:Eggingen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1857563,P17,Q581806) (Q1857563,P17,Q179890)
action is_in
entity Q1857563
action intersection
action find_reverse
entity Q581806
relation P17
action find_reverse
entity Q179890
relation P17
[ANSWER]
['Q1857563', 'P17', 'Q581806'] ['Q1857563', 'P17', 'Q179890']
ASK WHERE { resource:Q1857563 property:P17 resource:Q581806 . resource:Q1857563 property:P17 resource:Q179890 }
No
action is_in
entity Oldbury
action intersection
action find_reverse
entity Rimbach
relation country
action find_reverse
entity Eggingen
relation country
['Oldbury', 'country', 'Rimbach'] ['Oldbury', 'country', 'Eggingen']
ASK WHERE { resource:Oldbury property:country resource:Rimbach . resource:Oldbury property:country resource:Eggingen }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q937857 Q1866478
P425
Q349
USER
Does American handball have association football player as the associated field of occupation ?
(Q937857,P425,Q1866478)
action is_in
entity Q1866478
action find
entity Q937857
relation P425
['Q937857', 'P425', 'Q1866478']
ASK WHERE { resource:Q937857 property:P425 resource:Q1866478 }
association football player American handball
action is_in
entity American handball
action find
entity association football player
relation field of this occupation
['association football player', 'field of this occupation', 'American handball']
ASK WHERE { resource:association_football_player property:field_of_this_occupation resource:American_handball }
[]
sport
SYSTEM
NO
(Q937857,P425,Q1866478)
action is_in
entity Q1866478
action find
entity Q937857
relation P425
[ANSWER]
['Q937857', 'P425', 'Q1866478']
ASK WHERE { resource:Q937857 property:P425 resource:Q1866478 }
No
action is_in
entity American handball
action find
entity association football player
relation field of this occupation
['association football player', 'field of this occupation', 'American handball']
ASK WHERE { resource:association_football_player property:field_of_this_occupation resource:American_handball }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q4991371
P180
Q12737077 Q1792379 Q386724
USER
How many occupations are depicted in less number of art genres and works than soldier ?
(c(Q1792379)|c(Q386724),P180,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q4991371
relation P180
type Q1792379
type Q386724
[[{'concept': 'Q1792379'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?v WHERE { { ?o property:P180 ?v . ?v rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q1792379 } UNION { ?o property:P180 ?v . ?v rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q386724 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { ?r property:P180 resource:Q4991371 . { ?r rdf:type ?s . VALUES ( ?s ) { ( ontology:Q1792379 ) ( ontology:Q386724 ) } } } } . FILTER ( ?e < ?m ) }
soldier
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity soldier
relation depicts
type art genre
type work
[[{'concept': 'art genre'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?v WHERE { { ?o property:depicts ?v . ?v rdf:type ontology:occupation . ?o rdf:type ontology:art_genre } UNION { ?o property:depicts ?v . ?v rdf:type ontology:occupation . ?o rdf:type ontology:work } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { ?r property:depicts resource:soldier . { ?r rdf:type ?s . VALUES ( ?s ) { ( ontology:art_genre ) ( ontology:work ) } } } } . FILTER ( ?e < ?m ) }
[]
occupation art genre work
SYSTEM
224
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 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 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 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 Q1294787 Q1630100 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q1792379)|c(Q386724),P180,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q4991371
relation P180
type Q1792379
type Q386724
[ANSWER]
[[{'concept': 'Q1792379'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?v WHERE { { ?o property:P180 ?v . ?v rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q1792379 } UNION { ?o property:P180 ?v . ?v rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q386724 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { ?r property:P180 resource:Q4991371 . { ?r rdf:type ?s . VALUES ( ?s ) { ( ontology:Q1792379 ) ( ontology:Q386724 ) } } } } . FILTER ( ?e < ?m ) }
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 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 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 tailor cardinal housekeeper theologian courier monarch salt pan worker porter pastor 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 artisan art model bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
224
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity soldier
relation depicts
type art genre
type work
[[{'concept': 'art genre'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?v WHERE { { ?o property:depicts ?v . ?v rdf:type ontology:occupation . ?o rdf:type ontology:art_genre } UNION { ?o property:depicts ?v . ?v rdf:type ontology:occupation . ?o rdf:type ontology:work } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { ?r property:depicts resource:soldier . { ?r rdf:type ?s . VALUES ( ?s ) { ( ontology:art_genre ) ( ontology:work ) } } } } . FILTER ( ?e < ?m ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3557326 Q179890
P17
Q1048835
USER
Which political territories are Eggingen or Sorø Art Museum situated in ?
OR((Q179890,P17,c(Q1048835)), (Q3557326,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q179890
relation P17
action find
entity Q3557326
relation P17
type Q1048835
{'OR': [['Q179890', 'P17', {'concept': 'Q1048835'}], ['Q3557326', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?v ) { ( resource:Q179890 ) ( resource:Q3557326 ) } . ?v property:P17 ?d } . ?d rdf:type ontology:Q1048835 }
Sorø Art Museum Eggingen
action filter_type
action union
action find
entity Eggingen
relation country
action find
entity Sorø Art Museum
relation country
type political territorial entity
{'OR': [['Eggingen', 'country', {'concept': 'political territorial entity'}], ['Sorø Art Museum', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?v ) { ( resource:Eggingen ) ( resource:Sorø_Art_Museum ) } . ?v property:country ?d } . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q35
SYSTEM
Germany, Denmark
Q183 Q35
OR((Q179890,P17,c(Q1048835)), (Q3557326,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q179890
relation P17
action find
entity Q3557326
relation P17
type Q1048835
Eggingen or Sorø Art Museum are situated in [ANSWERS]
{'OR': [['Q179890', 'P17', {'concept': 'Q1048835'}], ['Q3557326', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?v ) { ( resource:Q179890 ) ( resource:Q3557326 ) } . ?v property:P17 ?d } . ?d rdf:type ontology:Q1048835 }
Germany Denmark
Eggingen or Sorø Art Museum are situated in Germany and Denmark
Germany Denmark
action filter_type
action union
action find
entity Eggingen
relation country
action find
entity Sorø Art Museum
relation country
type political territorial entity
{'OR': [['Eggingen', 'country', {'concept': 'political territorial entity'}], ['Sorø Art Museum', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?v ) { ( resource:Eggingen ) ( resource:Sorø_Art_Museum ) } . ?v property:country ?d } . ?d rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4943966
P27
Q502895
USER
Are Helena Dahlbäck civilians of those political territories ?
(Q4943966,P27,Q183) (Q4943966,P27,Q35)
action is_in
entity prev_answer
action find
entity Q4943966
relation P27
['Q4943966', 'P27', 'Q183'] ['Q4943966', 'P27', 'Q35']
ASK WHERE { VALUES ( ?t ) { ( resource:Q183 ) ( resource:Q35 ) } . resource:Q4943966 property:P27 ?t }
Helena Dahlbäck
action is_in
entity prev_answer
action find
entity Helena Dahlbäck
relation country of citizenship
['Helena Dahlbäck', 'country of citizenship', 'Germany'] ['Helena Dahlbäck', 'country of citizenship', 'Denmark']
ASK WHERE { VALUES ( ?t ) { ( resource:Germany ) ( resource:Denmark ) } . resource:Helena_Dahlbäck property:country_of_citizenship ?t }
[]
common name
SYSTEM
NO
(Q4943966,P27,Q183) (Q4943966,P27,Q35)
action is_in
entity prev_answer
action find
entity Q4943966
relation P27
[ANSWER]
['Q4943966', 'P27', 'Q183'] ['Q4943966', 'P27', 'Q35']
ASK WHERE { VALUES ( ?t ) { ( resource:Q183 ) ( resource:Q35 ) } . resource:Q4943966 property:P27 ?t }
No
action is_in
entity prev_answer
action find
entity Helena Dahlbäck
relation country of citizenship
['Helena Dahlbäck', 'country of citizenship', 'Germany'] ['Helena Dahlbäck', 'country of citizenship', 'Denmark']
ASK WHERE { VALUES ( ?t ) { ( resource:Germany ) ( resource:Denmark ) } . resource:Helena_Dahlbäck property:country_of_citizenship ?t }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q16
P530
Q1048835 Q15617994 Q1048835
USER
How many political territories have diplomatic relations with around the same number of administrative territories or political territories as Canada ?
(c(Q15617994)|c(Q1048835),P530,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q16
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?j ) WHERE { { ?u rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 . ?y property:P530 ?u } UNION { ?y property:P530 ?u . ?u rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:P530 resource:Q16 . { ?p rdf:type ?b . VALUES ( ?b ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } } } . FILTER ( ?j = ?h ) }
Canada
action count
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?j ) WHERE { { ?u rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation ?u } UNION { ?y property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:diplomatic_relation resource:Canada . { ?p rdf:type ?b . VALUES ( ?b ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } } } . FILTER ( ?j = ?h ) }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994)|c(Q1048835),P530,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q16
relation P530
type Q15617994
type Q1048835
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?j ) WHERE { { ?u rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 . ?y property:P530 ?u } UNION { ?y property:P530 ?u . ?u rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:P530 resource:Q16 . { ?p rdf:type ?b . VALUES ( ?b ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } } } . FILTER ( ?j = ?h ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?j ) WHERE { { ?u rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation ?u } UNION { ?y property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:diplomatic_relation resource:Canada . { ?p rdf:type ?b . VALUES ( ?b ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } } } . FILTER ( ?j = ?h ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q183
P530
Q1048835 Q15617994 Q1048835
USER
And how about Germany?
(c(Q15617994)|c(Q1048835),P530,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q183
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) ?h WHERE { VALUES ( ?k ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?d rdf:type ?k } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { ?n property:P530 resource:Q183 . { { ?n rdf:type ontology:Q15617994 } UNION { ?n rdf:type ontology:Q1048835 } } } } . FILTER ( ?s = ?f ) }
Germany
action count
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) ?h WHERE { VALUES ( ?k ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?d rdf:type ?k } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { ?n property:diplomatic_relation resource:Germany . { { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?n rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?s = ?f ) }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
2
Q183 Q408
(c(Q15617994)|c(Q1048835),P530,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q183
relation P530
type Q15617994
type Q1048835
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) ?h WHERE { VALUES ( ?k ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?d rdf:type ?k } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { ?n property:P530 resource:Q183 . { { ?n rdf:type ontology:Q15617994 } UNION { ?n rdf:type ontology:Q1048835 } } } } . FILTER ( ?s = ?f ) }
Germany Australia
2
action count
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) ?h WHERE { VALUES ( ?k ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?d rdf:type ?k } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { ?n property:diplomatic_relation resource:Germany . { { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?n rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?s = ?f ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1641608 Q3557326
P47 P17
Q1048835
USER
Which political territories do Sorø Art Museum belong to or are adjacent to Villanueva de la Reina ?
OR((Q3557326,P17,c(Q1048835)), (Q1641608,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q3557326
relation P17
action find
entity Q1641608
relation P47
type Q1048835
{'OR': [['Q3557326', 'P17', {'concept': 'Q1048835'}], ['Q1641608', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1641608 property:P47 ?m } UNION { resource:Q3557326 property:P17 ?m } } . ?m rdf:type ontology:Q1048835 }
Villanueva de la Reina Sorø Art Museum
action filter_type
action union
action find
entity Sorø Art Museum
relation country
action find
entity Villanueva de la Reina
relation shares border with
type political territorial entity
{'OR': [['Sorø Art Museum', 'country', {'concept': 'political territorial entity'}], ['Villanueva de la Reina', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Villanueva_de_la_Reina property:shares_border_with ?m } UNION { resource:Sorø_Art_Museum property:country ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q695456 Q35 Q587590
SYSTEM
Bailén, Denmark, Baños de la Encina
Q695456 Q35 Q587590
OR((Q3557326,P17,c(Q1048835)), (Q1641608,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q3557326
relation P17
action find
entity Q1641608
relation P47
type Q1048835
Sorø Art Museum belong to or are adjacent to Villanueva de la Reina in [ANSWERS]
{'OR': [['Q3557326', 'P17', {'concept': 'Q1048835'}], ['Q1641608', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1641608 property:P47 ?m } UNION { resource:Q3557326 property:P17 ?m } } . ?m rdf:type ontology:Q1048835 }
Bailén Denmark Baños de la Encina
Sorø Art Museum belong to or are adjacent to Villanueva de la Reina in Bailén, Denmark and Baños de la Encina
Bailén Denmark Baños de la Encina
action filter_type
action union
action find
entity Sorø Art Museum
relation country
action find
entity Villanueva de la Reina
relation shares border with
type political territorial entity
{'OR': [['Sorø Art Museum', 'country', {'concept': 'political territorial entity'}], ['Villanueva de la Reina', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Villanueva_de_la_Reina property:shares_border_with ?m } UNION { resource:Sorø_Art_Museum property:country ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q695456 Q35 Q587590
P1313
Q12737077
USER
Which occupations are fulfilled by Bailén, Denmark and Baños de la Encina ?
(Q695456,P1313,c(Q12737077)) (Q35,P1313,c(Q12737077)) (Q587590,P1313,c(Q12737077))
action union
action filter_type
action find
entity Q695456
relation P1313
type Q12737077
action filter_type
action find
entity Q35
relation P1313
type Q12737077
action filter_type
action find
entity Q587590
relation P1313
type Q12737077
['Q695456', 'P1313', {'concept': 'Q12737077'}] ['Q35', 'P1313', {'concept': 'Q12737077'}] ['Q587590', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?d ) { ( resource:Q695456 ) ( resource:Q35 ) } . ?d property:P1313 ?m }
Bailén Denmark Baños de la Encina
action union
action filter_type
action find
entity Bailén
relation office held by head of government
type occupation
action filter_type
action find
entity Denmark
relation office held by head of government
type occupation
action filter_type
action find
entity Baños de la Encina
relation office held by head of government
type occupation
['Bailén', 'office held by head of government', {'concept': 'occupation'}] ['Denmark', 'office held by head of government', {'concept': 'occupation'}] ['Baños de la Encina', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?d ) { ( resource:Bailén ) ( resource:Denmark ) } . ?d property:office_held_by_head_of_government ?m }
[]
occupation
Q26699690 Q795477 Q26698851
SYSTEM
mayor of Bailén, Prime Minister of Denmark, mayor of Baños de la Encina
Q26699690 Q795477 Q26698851
(Q695456,P1313,c(Q12737077)) (Q35,P1313,c(Q12737077)) (Q587590,P1313,c(Q12737077))
action union
action filter_type
action find
entity Q695456
relation P1313
type Q12737077
action filter_type
action find
entity Q35
relation P1313
type Q12737077
action filter_type
action find
entity Q587590
relation P1313
type Q12737077
[ANSWERS] are fulfilled by Bailén, Denmark and Baños de la Encina
['Q695456', 'P1313', {'concept': 'Q12737077'}] ['Q35', 'P1313', {'concept': 'Q12737077'}] ['Q587590', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?d ) { ( resource:Q695456 ) ( resource:Q35 ) } . ?d property:P1313 ?m }
mayor of Bailén Prime Minister of Denmark mayor of Baños de la Encina
Mayor of Bailén, Prime Minister of Denmark and mayor of Baños de la Encina are fulfilled by Bailén, Denmark and Baños de la Encina
mayor of Bailén Prime Minister of Denmark mayor of Baños de la Encina
action union
action filter_type
action find
entity Bailén
relation office held by head of government
type occupation
action filter_type
action find
entity Denmark
relation office held by head of government
type occupation
action filter_type
action find
entity Baños de la Encina
relation office held by head of government
type occupation
['Bailén', 'office held by head of government', {'concept': 'occupation'}] ['Denmark', 'office held by head of government', {'concept': 'occupation'}] ['Baños de la Encina', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?d ) { ( resource:Bailén ) ( resource:Denmark ) } . ?d property:office_held_by_head_of_government ?m }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q26699690 Q795477 Q26698851
P1001
Q1048835
USER
Which political territories come under the supervision of mayor of Bailén, Prime Minister of Denmark and mayor of Baños de la Encina ?
(Q26699690,P1001,c(Q1048835)) (Q795477,P1001,c(Q1048835)) (Q26698851,P1001,c(Q1048835))
action union
action filter_type
action find
entity Q26699690
relation P1001
type Q1048835
action filter_type
action find
entity Q795477
relation P1001
type Q1048835
action filter_type
action find
entity Q26698851
relation P1001
type Q1048835
['Q26699690', 'P1001', {'concept': 'Q1048835'}] ['Q795477', 'P1001', {'concept': 'Q1048835'}] ['Q26698851', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { ?x property:P1001 ?t . VALUES ( ?x ) { ( resource:Q26699690 ) ( resource:Q795477 ) } }
mayor of Bailén Prime Minister of Denmark mayor of Baños de la Encina
action union
action filter_type
action find
entity mayor of Bailén
relation applies to jurisdiction
type political territorial entity
action filter_type
action find
entity Prime Minister of Denmark
relation applies to jurisdiction
type political territorial entity
action filter_type
action find
entity mayor of Baños de la Encina
relation applies to jurisdiction
type political territorial entity
['mayor of Bailén', 'applies to jurisdiction', {'concept': 'political territorial entity'}] ['Prime Minister of Denmark', 'applies to jurisdiction', {'concept': 'political territorial entity'}] ['mayor of Baños de la Encina', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { ?x property:applies_to_jurisdiction ?t . VALUES ( ?x ) { ( resource:mayor_of_Bailén ) ( resource:Prime_Minister_of_Denmark ) } }
[]
political territorial entity
Q695456 Q35 Q587590
SYSTEM
Bailén, Denmark, Baños de la Encina
Q695456 Q35 Q587590
(Q26699690,P1001,c(Q1048835)) (Q795477,P1001,c(Q1048835)) (Q26698851,P1001,c(Q1048835))
action union
action filter_type
action find
entity Q26699690
relation P1001
type Q1048835
action filter_type
action find
entity Q795477
relation P1001
type Q1048835
action filter_type
action find
entity Q26698851
relation P1001
type Q1048835
[ANSWERS] come under the supervision of mayor of Bailén, Prime Minister of Denmark and mayor of Baños de la Encina
['Q26699690', 'P1001', {'concept': 'Q1048835'}] ['Q795477', 'P1001', {'concept': 'Q1048835'}] ['Q26698851', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { ?x property:P1001 ?t . VALUES ( ?x ) { ( resource:Q26699690 ) ( resource:Q795477 ) } }
Bailén Denmark Baños de la Encina
Bailén, Denmark and Baños de la Encina come under the supervision of mayor of Bailén, Prime Minister of Denmark and mayor of Baños de la Encina
Bailén Denmark Baños de la Encina
action union
action filter_type
action find
entity mayor of Bailén
relation applies to jurisdiction
type political territorial entity
action filter_type
action find
entity Prime Minister of Denmark
relation applies to jurisdiction
type political territorial entity
action filter_type
action find
entity mayor of Baños de la Encina
relation applies to jurisdiction
type political territorial entity
['mayor of Bailén', 'applies to jurisdiction', {'concept': 'political territorial entity'}] ['Prime Minister of Denmark', 'applies to jurisdiction', {'concept': 'political territorial entity'}] ['mayor of Baños de la Encina', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { ?x property:applies_to_jurisdiction ?t . VALUES ( ?x ) { ( resource:mayor_of_Bailén ) ( resource:Prime_Minister_of_Denmark ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q587590
P6
Q502895
USER
Which person is the head of government of that political territory ?
(Q587590,P6,c(Q502895))
action filter_type
action find
entity Q587590
relation P6
type Q502895
['Q587590', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q587590 property:P6 ?t . ?t rdf:type ontology:Q502895 }
Baños de la Encina
action filter_type
action find
entity Baños de la Encina
relation head of government
type common name
['Baños de la Encina', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Baños_de_la_Encina property:head_of_government ?t . ?t rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q587590
SYSTEM
Did you mean Baños de la Encina ?
Q695456 Q35 Q587590
(Q695456,P6,c(Q502895)) (Q35,P6,c(Q502895)) (Q587590,P6,c(Q502895))
[ANSWER]
['Q695456', 'P6', {'concept': 'Q502895'}] ['Q35', 'P6', {'concept': 'Q502895'}] ['Q587590', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q587590 property:P6 ?t . ?t rdf:type ontology:Q502895 }
Bailén Denmark Baños de la Encina
Did you mean Baños de la Encina ?
Baños de la Encina
['Bailén', 'head of government', {'concept': 'common name'}] ['Denmark', 'head of government', {'concept': 'common name'}] ['Baños de la Encina', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Baños_de_la_Encina property:head_of_government ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q587590,P6,c(Q502895))
['Q587590', 'P6', {'concept': 'Q502895'}]
['Baños de la Encina', 'head of government', {'concept': 'common name'}]
[]
Q14085042
SYSTEM
Antonio las Heras Cortes
Q14085042
(Q587590,P6,c(Q502895))
action filter_type
action find
entity Q587590
relation P6
type Q502895
[ANSWER] is the head of government of that political territory
['Q587590', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q587590 property:P6 ?t . ?t rdf:type ontology:Q502895 }
Antonio las Heras Cortes
Antonio las Heras Cortes is the head of government of that political territory
Antonio las Heras Cortes
action filter_type
action find
entity Baños de la Encina
relation head of government
type common name
['Baños de la Encina', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Baños_de_la_Encina property:head_of_government ?t . ?t rdf:type ontology:common_name }
[]