Simple Question (Direct)
Simple Question
Q4866698
P915
Q56061
USER
Which location was Basement Jack filmed ?
(Q4866698,P915,c(Q56061))
action filter_type
action find
entity Q4866698
relation P915
type Q56061
['Q4866698', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q4866698 property:P915 ?c . ?c rdf:type ontology:Q56061 }
Basement Jack
action filter_type
action find
entity Basement Jack
relation filming location
type administrative territorial entity
['Basement Jack', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Basement_Jack property:filming_location ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q65
SYSTEM
Los Angeles
Q65
(Q4866698,P915,c(Q56061))
action filter_type
action find
entity Q4866698
relation P915
type Q56061
Basement Jack was filmed in [ANSWER]
['Q4866698', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q4866698 property:P915 ?c . ?c rdf:type ontology:Q56061 }
Los Angeles
Basement Jack was filmed in Los Angeles
Los Angeles
action filter_type
action find
entity Basement Jack
relation filming location
type administrative territorial entity
['Basement Jack', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Basement_Jack property:filming_location ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q65
P1408
Q4830453
USER
Which business enterprises have procured license for broadcasting to that administrative territory ?
(c(Q4830453),P1408,Q65)
action filter_type
action find_reverse
entity Q65
relation P1408
type Q4830453
[{'concept': 'Q4830453'}, 'P1408', 'Q65']
SELECT DISTINCT ?m WHERE { ?m property:P1408 resource:Q65 . ?m rdf:type ontology:Q4830453 }
Los Angeles
action filter_type
action find_reverse
entity Los Angeles
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'Los Angeles']
SELECT DISTINCT ?m WHERE { ?m property:licensed_to_broadcast_to resource:Los_Angeles . ?m rdf:type ontology:business_enterprise }
[]
business enterprise
Q1140873 Q6341439 Q6342047
SYSTEM
KTLA, KXOS, KYSR
Q6341439 Q6342047 Q3191501 Q1582014 Q6340661 Q1140873 Q6334702
(c(Q4830453),P1408,Q65)
action filter_type
action find_reverse
entity Q65
relation P1408
type Q4830453
[ANSWERS] have procured license for broadcasting to that administrative territory
[{'concept': 'Q4830453'}, 'P1408', 'Q65']
SELECT DISTINCT ?m WHERE { ?m property:P1408 resource:Q65 . ?m rdf:type ontology:Q4830453 }
KXOS KYSR KSPN KIIS-FM KWKW KTLA KNX
KTLA, KXOS and KYSR have procured license for broadcasting to that administrative territory
KTLA KXOS KYSR
action filter_type
action find_reverse
entity Los Angeles
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'Los Angeles']
SELECT DISTINCT ?m WHERE { ?m property:licensed_to_broadcast_to resource:Los_Angeles . ?m rdf:type ontology:business_enterprise }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6297447 Q6342047
P1408 P937
Q56061
USER
Which administrative territories did KYSR get a license to broadcast to or are the work locations of Joyce Cusack ?
OR((Q6342047,P1408,c(Q56061)), (Q6297447,P937,c(Q56061)))
action filter_type
action union
action find
entity Q6342047
relation P1408
action find
entity Q6297447
relation P937
type Q56061
{'OR': [['Q6342047', 'P1408', {'concept': 'Q56061'}], ['Q6297447', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q6342047 property:P1408 ?r } UNION { resource:Q6297447 property:P937 ?r } } . ?r rdf:type ontology:Q56061 }
Joyce Cusack KYSR
action filter_type
action union
action find
entity KYSR
relation licensed to broadcast to
action find
entity Joyce Cusack
relation work location
type administrative territorial entity
{'OR': [['KYSR', 'licensed to broadcast to', {'concept': 'administrative territorial entity'}], ['Joyce Cusack', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:KYSR property:licensed_to_broadcast_to ?r } UNION { resource:Joyce_Cusack property:work_location ?r } } . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q65 Q37043
SYSTEM
Los Angeles, Tallahassee
Q65 Q37043
OR((Q6342047,P1408,c(Q56061)), (Q6297447,P937,c(Q56061)))
action filter_type
action union
action find
entity Q6342047
relation P1408
action find
entity Q6297447
relation P937
type Q56061
KYSR got a license to broadcast to the [ANSWERS] or are the work locations of Joyce Cusack
{'OR': [['Q6342047', 'P1408', {'concept': 'Q56061'}], ['Q6297447', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q6342047 property:P1408 ?r } UNION { resource:Q6297447 property:P937 ?r } } . ?r rdf:type ontology:Q56061 }
Los Angeles Tallahassee
KYSR got a license to broadcast to the Los Angeles and Tallahassee or are the work locations of Joyce Cusack
Los Angeles Tallahassee
action filter_type
action union
action find
entity KYSR
relation licensed to broadcast to
action find
entity Joyce Cusack
relation work location
type administrative territorial entity
{'OR': [['KYSR', 'licensed to broadcast to', {'concept': 'administrative territorial entity'}], ['Joyce Cusack', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:KYSR property:licensed_to_broadcast_to ?r } UNION { resource:Joyce_Cusack property:work_location ?r } } . ?r rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q65
P30
Q2221906
USER
Where is that administrative territory located ?
(Q65,P30,c(Q2221906))
action filter_type
action find
entity Q65
relation P30
type Q2221906
['Q65', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q2221906 . resource:Q65 property:P30 ?x }
Los Angeles
action filter_type
action find
entity Los Angeles
relation continent
type geographic location
['Los Angeles', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:geographic_location . resource:Los_Angeles property:continent ?x }
[]
geographic location
Clarification for simple ques.
Q65
SYSTEM
Did you mean Los Angeles ?
Q65 Q37043
(Q65,P30,c(Q2221906)) (Q37043,P30,c(Q2221906))
[ANSWER]
['Q65', 'P30', {'concept': 'Q2221906'}] ['Q37043', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q2221906 . resource:Q65 property:P30 ?x }
Los Angeles Tallahassee
Did you mean Los Angeles ?
Los Angeles
['Los Angeles', 'continent', {'concept': 'geographic location'}] ['Tallahassee', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:geographic_location . resource:Los_Angeles property:continent ?x }
[]
Simple Question (Coreferenced)
USER
Yes
(Q65,P30,c(Q2221906))
['Q65', 'P30', {'concept': 'Q2221906'}]
['Los Angeles', 'continent', {'concept': 'geographic location'}]
[]
Q49
SYSTEM
North America
Q49
(Q65,P30,c(Q2221906))
action filter_type
action find
entity Q65
relation P30
type Q2221906
That administrative territory is located in [ANSWER]
['Q65', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q2221906 . resource:Q65 property:P30 ?x }
North America
That administrative territory is located in North America
North America
action filter_type
action find
entity Los Angeles
relation continent
type geographic location
['Los Angeles', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:geographic_location . resource:Los_Angeles property:continent ?x }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q49 Q182343
P30
Q355304
USER
Does Niagara River have its location in that geographic location ?
(Q182343,P30,Q49)
action is_in
entity Q49
action find
entity Q182343
relation P30
['Q182343', 'P30', 'Q49']
ASK WHERE { resource:Q182343 property:P30 resource:Q49 }
North America Niagara River
action is_in
entity North America
action find
entity Niagara River
relation continent
['Niagara River', 'continent', 'North America']
ASK WHERE { resource:Niagara_River property:continent resource:North_America }
[]
watercourse
SYSTEM
YES
(Q182343,P30,Q49)
action is_in
entity Q49
action find
entity Q182343
relation P30
[ANSWER]
['Q182343', 'P30', 'Q49']
ASK WHERE { resource:Q182343 property:P30 resource:Q49 }
Yes
action is_in
entity North America
action find
entity Niagara River
relation continent
['Niagara River', 'continent', 'North America']
ASK WHERE { resource:Niagara_River property:continent resource:North_America }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1140873 Q30 Q571447
P17
Q15617994
USER
Is KTLA situated in United States of America and Seester ?
(Q1140873,P17,Q30) (Q1140873,P17,Q571447)
action is_in
entity Q1140873
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q571447
relation P17
['Q1140873', 'P17', 'Q30'] ['Q1140873', 'P17', 'Q571447']
ASK WHERE { resource:Q1140873 property:P17 resource:Q30 . resource:Q1140873 property:P17 resource:Q571447 }
KTLA United States of America Seester
action is_in
entity KTLA
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity Seester
relation country
['KTLA', 'country', 'United States of America'] ['KTLA', 'country', 'Seester']
ASK WHERE { resource:KTLA property:country resource:United_States_of_America . resource:KTLA property:country resource:Seester }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q1140873,P17,Q30) (Q1140873,P17,Q571447)
action is_in
entity Q1140873
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q571447
relation P17
[ANSWER]
['Q1140873', 'P17', 'Q30'] ['Q1140873', 'P17', 'Q571447']
ASK WHERE { resource:Q1140873 property:P17 resource:Q30 . resource:Q1140873 property:P17 resource:Q571447 }
YES and NO respectively
action is_in
entity KTLA
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity Seester
relation country
['KTLA', 'country', 'United States of America'] ['KTLA', 'country', 'Seester']
ASK WHERE { resource:KTLA property:country resource:United_States_of_America . resource:KTLA property:country resource:Seester }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q660806
P706
Q2221906 Q15617994
USER
Which administrative territories are located in greater number of geographic locations than Karlshagen ?
(c(Q15617994),P706,c(Q2221906))
action greater
action find_tuple_counts
relation P706
type Q15617994
type Q2221906
action count
action filter_type
action find
entity Q660806
relation P706
type Q15617994
[{'concept': 'Q15617994'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?s ) WHERE { ?k rdf:type ontology:Q2221906 . ?y rdf:type ontology:Q15617994 . ?y property:P706 ?k } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { resource:Q660806 property:P706 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?s > ?v ) }
Karlshagen
action greater
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type geographic location
action count
action filter_type
action find
entity Karlshagen
relation located on terrain feature
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?s ) WHERE { ?k rdf:type ontology:geographic_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:located_on_terrain_feature ?k } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { resource:Karlshagen property:located_on_terrain_feature ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s > ?v ) }
[]
geographic location designation for an administrative territorial entity
Q33 Q786 Q754
SYSTEM
Finland, Dominican Republic, Trinidad and Tobago
Q784 Q786 Q790 Q244 Q33 Q754 Q262684 Q760 Q153969
(c(Q15617994),P706,c(Q2221906))
action greater
action find_tuple_counts
relation P706
type Q15617994
type Q2221906
action count
action filter_type
action find
entity Q660806
relation P706
type Q15617994
[ANSWERS] are located in greater number of geographic locations than Karlshagen
[{'concept': 'Q15617994'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?s ) WHERE { ?k rdf:type ontology:Q2221906 . ?y rdf:type ontology:Q15617994 . ?y property:P706 ?k } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { resource:Q660806 property:P706 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?s > ?v ) }
Dominica Dominican Republic Haiti Barbados Finland Trinidad and Tobago Füssen Saint Lucia Lindau
Finland, Dominican Republic and Trinidad and Tobago are located in greater number of geographic locations than Karlshagen
Finland Dominican Republic Trinidad and Tobago
action greater
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type geographic location
action count
action filter_type
action find
entity Karlshagen
relation located on terrain feature
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?s ) WHERE { ?k rdf:type ontology:geographic_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:located_on_terrain_feature ?k } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { resource:Karlshagen property:located_on_terrain_feature ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s > ?v ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q769
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations with lesser number of administrative territories than Grenada ?
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?x ) WHERE { ?u rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 . ?u property:P530 ?q } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { resource:Q769 property:P530 ?c . ?c rdf:type ontology:Q1048835 } } . FILTER ( ?x < ?g ) }
Grenada
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?x ) WHERE { ?u rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u property:diplomatic_relation ?q } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { resource:Grenada property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity } } . FILTER ( ?x < ?g ) }
[]
political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[ANSWERS] have diplomatic relations with lesser number of administrative territories than Grenada
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?x ) WHERE { ?u rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 . ?u property:P530 ?q } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { resource:Q769 property:P530 ?c . ?c rdf:type ontology:Q1048835 } } . FILTER ( ?x < ?g ) }
Solomon Islands Papua New Guinea
Solomon Islands and Papua New Guinea have diplomatic relations with lesser number of administrative territories than Grenada
Solomon Islands Papua New Guinea
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?x ) WHERE { ?u rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u property:diplomatic_relation ?q } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { resource:Grenada property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity } } . FILTER ( ?x < ?g ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q408
P530
Q1048835 Q15617994
USER
And also tell me about Australia?
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q408
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?a ) WHERE { ?c property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Q408 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } . FILTER ( ?a < ?b ) }
Australia
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?a ) WHERE { ?c property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Australia property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?a < ?b ) }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q408
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?a ) WHERE { ?c property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Q408 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } . FILTER ( ?a < ?b ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark Canada Austria
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?a ) WHERE { ?c property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Australia property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?a < ?b ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q36600
P180
Q56061 Q838948 Q15709879
USER
How many administrative territories are depicted in less number of works of art and artwork series than The Hague ?
(c(Q838948)|c(Q15709879),P180,c(Q56061))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q838948
action find_reverse_tuple_counts
relation P180
type Q56061
type Q15709879
action count
action filter_multi_types
action find_reverse
entity Q36600
relation P180
type Q838948
type Q15709879
[[{'concept': 'Q838948'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) ?d WHERE { { ?d rdf:type ontology:Q56061 . ?o rdf:type ontology:Q838948 . ?o property:P180 ?d } UNION { ?o property:P180 ?d . ?o rdf:type ontology:Q15709879 . ?d rdf:type ontology:Q56061 } } GROUP BY ?d } . FILTER ( ?g < ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { ?w property:P180 resource:Q36600 . { { ?w rdf:type ontology:Q15709879 } UNION { ?w rdf:type ontology:Q838948 } } } } }
The Hague
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type artwork series
action count
action filter_multi_types
action find_reverse
entity The Hague
relation depicts
type work of art
type artwork series
[[{'concept': 'work of art'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) ?d WHERE { { ?d rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:work_of_art . ?o property:depicts ?d } UNION { ?o property:depicts ?d . ?o rdf:type ontology:artwork_series . ?d rdf:type ontology:administrative_territorial_entity } } GROUP BY ?d } . FILTER ( ?g < ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { ?w property:depicts resource:The_Hague . { { ?w rdf:type ontology:artwork_series } UNION { ?w rdf:type ontology:work_of_art } } } } }
[]
administrative territorial entity work of art artwork series
SYSTEM
450
Q894252 Q81076 Q10084 Q5180660 Q2536016 Q103011 Q7228196 Q52437 Q2741834 Q2218481 Q2035368 Q3876885 Q319536 Q319538 Q33486 Q12443 Q9427 Q3405864 Q11093013 Q7165393 Q3615313 Q6661066 Q1889195 Q950671 Q2214216 Q10989923 Q1198413 Q322 Q151920 Q467664 Q13375 Q1656724 Q130514 Q3404679 Q787395 Q33959 Q2184880 Q23051 Q2656 Q5687 Q7259867 Q54108 Q573757 Q4810069 Q9920 Q1310876 Q1866840 Q744948 Q3401639 Q15682 Q1908075 Q82070 Q2684439 Q5776 Q1757 Q1754 Q13153 Q319710 Q329967 Q12061339 Q13644930 Q6661117 Q62289 Q1965490 Q5058788 Q13644939 Q6477 Q2233618 Q1973162 Q41843 Q178835 Q1024924 Q1025821 Q2367253 Q1616324 Q80985 Q657748 Q472667 Q7837859 Q5616341 Q3297078 Q3401919 Q10690 Q3406673 Q3437 Q47164 Q12892 Q257446 Q365 Q5836 Q5288857 Q42053 Q179815 Q624065 Q991055 Q1247496 Q319576 Q1311946 Q4996547 Q54143 Q180294 Q8818 Q80561 Q675460 Q428829 Q854672 Q5058745 Q13129603 Q7682007 Q3401133 Q1992389 Q174054 Q2385069 Q8021998 Q1524 Q9918 Q1489 Q3398339 Q1796191 Q2020203 Q1640443 Q6661380 Q7837893 Q2467 Q49156 Q3561 Q3398830 Q3398834 Q2313777 Q139564 Q144983 Q406 Q234178 Q8678 Q8054067 Q495 Q2044 Q7525 Q179046 Q319242 Q2695104 Q1012797 Q5623909 Q3405897 Q6661275 Q54145 Q1021164 Q527467 Q54217 Q199797 Q54134 Q7162078 Q1001536 Q2273077 Q272777 Q463937 Q3399236 Q3834 Q5463763 Q22336755 Q1191195 Q102217 Q1234779 Q3403140 Q1726 Q237 Q1936328 Q12994 Q995477 Q282461 Q2653611 Q621 Q7837767 Q5173016 Q748777 Q1296 Q6661758 Q1866857 Q636188 Q3402958 Q203387 Q16548107 Q3406382 Q170263 Q5200191 Q1748 Q205905 Q13129631 Q6661101 Q3811275 Q87 Q690 Q85 Q1013633 Q2227185 Q2100774 Q284467 Q187346 Q42462 Q9945 Q6661589 Q1741 Q6990839 Q200311 Q2243491 Q2913827 Q6661409 Q3399377 Q3404936 Q2634 Q3812274 Q285412 Q215177 Q319672 Q16869 Q4914513 Q191687 Q6661329 Q12302777 Q172 Q270 Q7588179 Q3309484 Q1020726 Q647698 Q84 Q1235510 Q2513006 Q376866 Q1638504 Q13678 Q5116688 Q79980 Q163490 Q23311 Q6661145 Q4769524 Q3401109 Q837211 Q579854 Q6737 Q951659 Q9908 Q3309494 Q171923 Q1492 Q6225 Q1867 Q2532363 Q3551 Q1807193 Q648732 Q6729228 Q13129664 Q3398922 Q43475 Q7837785 Q3957 Q158467 Q64004 Q18419 Q1024911 Q6661964 Q271269 Q983538 Q5566589 Q5572835 Q674950 Q548248 Q2807 Q7930989 Q783437 Q49218 Q1353 Q183303 Q1974260 Q101254 Q13498 Q13496 Q677678 Q2185491 Q1026871 Q4667051 Q220 Q6661212 Q2240740 Q26421 Q4667113 Q1964775 Q123076 Q145948 Q2316216 Q672545 Q25231 Q25230 Q6661749 Q3050619 Q617 Q642810 Q339535 Q3402179 Q634054 Q922270 Q784824 Q3398367 Q158788 Q692847 Q487315 Q184163 Q2037687 Q2963905 Q6661527 Q8621 Q24861 Q3398962 Q1894788 Q49146 Q779813 Q2487253 Q3397661 Q3406111 Q1024903 Q178813 Q1218 Q3405138 Q54264 Q1070 Q10866 Q3398817 Q3869 Q34404 Q8717 Q3404531 Q64 Q60 Q62 Q3403507 Q3395358 Q1824365 Q3766 Q3460719 Q781725 Q835831 Q965581 Q2771917 Q478675 Q138833 Q1144249 Q5289699 Q126148 Q4870052 Q3876767 Q876315 Q771986 Q6661879 Q3402636 Q1011600 Q1428848 Q7005760 Q46843 Q7909529 Q42810 Q216258 Q1310 Q6661173 Q647 Q641 Q616837 Q16258 Q727 Q4898676 Q649 Q669171 Q9306 Q2599413 Q2301524 Q2085995 Q3401728 Q180141 Q881062 Q15088 Q5788 Q4980850 Q578447 Q13129719 Q580 Q13126981 Q12191 Q3398853 Q34370 Q1449 Q360795 Q7678684 Q3878864 Q207639 Q2666382 Q1024935 Q7163099 Q6441 Q3817101 Q3400567 Q5642527 Q156990 Q3402457 Q914291 Q40844 Q2272941 Q14702005 Q26793 Q7838879 Q3363693 Q3397480 Q6732359 Q7592977 Q2619155 Q60956 Q2239 Q509028 Q1002793 Q5119942 Q1026572 Q7165298 Q3402425 Q535982 Q1781556 Q752762 Q3992 Q177165 Q1883524 Q995231 Q3395924 Q3402761 Q4942645 Q3877586 Q1009261 Q1813948 Q922365 Q16033791 Q6661943 Q1229951 Q213205 Q6661088 Q332952 Q665163 Q3878353 Q138311 Q3405649 Q12116357 Q4982108 Q1085
(c(Q838948)|c(Q15709879),P180,c(Q56061))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q838948
action find_reverse_tuple_counts
relation P180
type Q56061
type Q15709879
action count
action filter_multi_types
action find_reverse
entity Q36600
relation P180
type Q838948
type Q15709879
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) ?d WHERE { { ?d rdf:type ontology:Q56061 . ?o rdf:type ontology:Q838948 . ?o property:P180 ?d } UNION { ?o property:P180 ?d . ?o rdf:type ontology:Q15709879 . ?d rdf:type ontology:Q56061 } } GROUP BY ?d } . FILTER ( ?g < ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { ?w property:P180 resource:Q36600 . { { ?w rdf:type ontology:Q15709879 } UNION { ?w rdf:type ontology:Q838948 } } } } }
Borth Zierikzee Vlissingen Craig-y-Don Crickhowell Corinth Pontfadog Murano Llanidloes Oosterbeek Tremadog Minsterley Aberdyfi Abererch Hartford Marquette Timbuktu Llandygai Cyffylliog Penybont Andaraí Llanarmon, Gwynedd Mogenstrup Porthmadog Soestdijk Llanfihangel-yng-Ngwynfa military camp Llanfairpwllgwyngyll Tiberias Butte Pisa ideal city Luxor Crumlin Llanfairfechan Nice St Pierre, Monmouthshire Swansea Palermo Jericho Pumsaint Bahía Blanca Usk Peristerona Haarlem Hokksund Llangybi, Gwynedd New Rochelle Henllan Cádiz Karrebæksminde Tyre Trefriw Bethlehem Helsinki Stockholm Ronda Abersoch Paestum Llangedwyn Llandrinio Llanboidy Rockaway Beach Laugharne Cenarth Llanrhystud Pirna Llanrwst Neath Abbey Beersheba Baalbek Llanbedrog Pwllheli Halfweg Egmond aan Zee Fes Manchester-by-the-Sea Amlwch Tregeiriog Guilsfield Sodom Nantmor Cardiff Esgairgeiliog Perugia Santa Monica Antwerp Holyhead Cologne Toledo Dolanog Isfahan Durham Molesey Milford Haven Rievaulx Abbey Aberffraw Montgomery Bull Bay, Anglesey Melrose Jaffa Valencia Antakya Machynlleth Caernarfon Nisa Cemmaes Llanarmon Dyffryn Ceiriog Tan-y-Bwlch, Maentwrog Bagillt Beaumaris Isola Bella Duivendrecht Willington Worthenbury Athens Enkhuizen Mexico City Devil's Bridge Frederiksværk Rhyl West Wyalong Llanfoist Tregynon Nassau Gloucester Algiers Corris Llanaelhaearn Kamperveen Atlantic City Banská Bystrica Istanbul Bangor Rio de Janeiro Ynys Môn Turin Florence Sevastopol Fatehpur Sikri Caesarea Maritima Grafton, Cheshire Ostia Antica Gwytherin Llanbadarn Fawr Llandysilio Medford Pontypool Colwyn Bay Norwalk Tacoma Newburyport Pen-y-groes, Carmarthenshire Budleigh Salterton Newcastle Emlyn Hadrian's Villa Saint Thomas Bodedern Konstanz Fløng Aston Mold Vitebsk Thornbury Llanfair-ar-y-bryn Munich Vatican City Nevern Bruges Drøbak IJmuiden Penmaenmawr Versailles Trefeglwys Corris Uchaf Tintagel Ghent Llansantffraed Llanystumdwy Rey, Iran Carno Betws-y-Coed Castle Caereinion Glyndyfrdwy Chester Cynwyl Gaeo Copenhagen Lancaster Llanfechell Llanbedr-Dyffryn-Clwyd Whittington Alexandria Delft Cairo Ruthin Felpham Point Judith, Rhode Island Vogelenzang Constantine York Laren Llangynyw Vienna Neltume Mathura Tintern Llanfwrog Llangadfan Clynnog Fawr Llanfair Talhaiarn Naples Baschurch Llithfaen Skagen Aberporth Constantinople Binsey, Oxfordshire Heliopolis Llanfaelog Baldersbrønde Toronto Warsaw St. George, Conwy Berriew Stalheim Malakoff London Dolgellau Cropthorne Santa Maria de Belém Llanberis Agrigento Church Stoke Varanasi Sidon City of London Llandderfel Annisquam Caerwys Scheveningen Gamla stan Castellammare di Stabia Claremont Bloemendaal Bronllys Bala Barcelona Coventry Taipei Presteigne Rabat Rhuddlan St Davids Maenclochog Llanllwchaiarn Y Felinheli Derby Trefin town Gwalior Grindelwald Brooklyn Welshpool Llechryd Åsgårdstrand Green River Llansanffraid Glan Conwy Glyn Ceiriog residential area St Asaph Madrid city Ploumanac'h Rochester Delhi Jalalabad Nefyn Newport Taranto Brindisi fortified town East Bergholt Winchelsea Aberdulais Rome Llandinam IJsselmonde Dordrecht Aberhafesp Nantlle Valley Palmyra Atoll Svolvær Chirk Barmouth Svalbard Guernsey Llansanffraid Glyndyfrdwy Holywell Padua Missolonghi Hammamet Llanfair Conwy Llanddewi Brefi Pembroke Dock Sarn Meyllteyrn Melenki Segesta Monterey Colchester Dedham Chirbury Llangurig Terni Albany Garndolbenmaen Margam Abbey New London Cardigan Tregaron Llangeitho Llansawel Sloten Herculaneum Jerusalem St Dogmaels Newport Ahmedabad Narni Aberllefenni Marburg New Orleans Seville Bangor-on-Dee Berlin New York City San Francisco Llanbrynmair Kidwelly Dodleston Damascus Old Colwyn Llangernyw Mount Vernon Cardia Abergele Riobamba Kom Ombo Lulworth Dolwyddelan Tangier Battle Harbour Bethel Taos Chepstow Llanwnnog Y Ffôr Ellesmere Port Flint New Broughton Auerbach Vale of Clwyd Le Havre Hilo Arnhem Llanddulas Rennes Venice Sarepta Maldonado Amsterdam Bettws Cedewain Moscow Newtown Eberswalde Stratford St. Mary Stege St Clears Llandre Sodom and Gomorrah Blaenau Ffestiniog Tarragona Petra Bryn Du Countryside Llwyn-y-brain Łódź Cellan Nantes Trawsfynydd Rotterdam Genoa Isawa Tal-y-llyn, Gwynedd Pontesbury Chichester Llanfair Caereinion Harlech Penmachno Montpellier Halton Llanengan Halkyn Monmouth Bryncrug Newport Breda Tywyn Llanwddyn Bergen Tretower Meifod Llanymynech Magor, Monmouthshire St Donats Hillested Ashkelon Kongens Lyngby ranch Llangollen Cilgerran Llanrhaeadr-ym-Mochnant Pentrefoelas Llanuwchllyn Lystra Gärdet Merthyr Tydfil Liège Narberth, Pembrokeshire Bethesda Long Branch Llansanffraid-ym-Mechain Llandegfan Bontuchel Westbury Caerleon Prestatyn Dyffryn Ardudwy Llangwyfan, Aberffraw Llay L'Estaque San Francisco Bay Area Llanbadarn Fawr Überlingen Nahant Shrawardine Elizabeth Chwilog Chiajna Buan, Gwynedd Prague
450
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type artwork series
action count
action filter_multi_types
action find_reverse
entity The Hague
relation depicts
type work of art
type artwork series
[[{'concept': 'work of art'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) ?d WHERE { { ?d rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:work_of_art . ?o property:depicts ?d } UNION { ?o property:depicts ?d . ?o rdf:type ontology:artwork_series . ?d rdf:type ontology:administrative_territorial_entity } } GROUP BY ?d } . FILTER ( ?g < ?k ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { ?w property:depicts resource:The_Hague . { { ?w rdf:type ontology:artwork_series } UNION { ?w rdf:type ontology:work_of_art } } } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q52667 Q6341439
P19 P1408
Q56061
USER
Which administrative territories are KXOS licensed to broadcast to or were Alberto Juantorena born ?
OR((Q6341439,P1408,c(Q56061)), (Q52667,P19,c(Q56061)))
action filter_type
action union
action find
entity Q6341439
relation P1408
action find
entity Q52667
relation P19
type Q56061
{'OR': [['Q6341439', 'P1408', {'concept': 'Q56061'}], ['Q52667', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q6341439 property:P1408 ?p } UNION { resource:Q52667 property:P19 ?p } } . ?p rdf:type ontology:Q56061 }
Alberto Juantorena KXOS
action filter_type
action union
action find
entity KXOS
relation licensed to broadcast to
action find
entity Alberto Juantorena
relation place of birth
type administrative territorial entity
{'OR': [['KXOS', 'licensed to broadcast to', {'concept': 'administrative territorial entity'}], ['Alberto Juantorena', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:KXOS property:licensed_to_broadcast_to ?p } UNION { resource:Alberto_Juantorena property:place_of_birth ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q65 Q117040
SYSTEM
Los Angeles, Santiago de Cuba
Q65 Q117040
OR((Q6341439,P1408,c(Q56061)), (Q52667,P19,c(Q56061)))
action filter_type
action union
action find
entity Q6341439
relation P1408
action find
entity Q52667
relation P19
type Q56061
KXOS are licensed to broadcast to born in [ANSWERS]
{'OR': [['Q6341439', 'P1408', {'concept': 'Q56061'}], ['Q52667', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q6341439 property:P1408 ?p } UNION { resource:Q52667 property:P19 ?p } } . ?p rdf:type ontology:Q56061 }
Los Angeles Santiago de Cuba
KXOS are licensed to broadcast to born in Los Angeles and Santiago de Cuba
Los Angeles Santiago de Cuba
action filter_type
action union
action find
entity KXOS
relation licensed to broadcast to
action find
entity Alberto Juantorena
relation place of birth
type administrative territorial entity
{'OR': [['KXOS', 'licensed to broadcast to', {'concept': 'administrative territorial entity'}], ['Alberto Juantorena', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:KXOS property:licensed_to_broadcast_to ?p } UNION { resource:Alberto_Juantorena property:place_of_birth ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q65
P1001
Q12737077 Q895526
USER
How many occupations and authority organs apply to jurisdiction over Los Angeles ?
(c(Q12737077),P1001,Q65) (c(Q895526),P1001,Q65)
action count
action union
action filter_type
action find_reverse
entity Q65
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q65
relation P1001
type Q895526
[{'concept': 'Q12737077'}, 'P1001', 'Q65'] [{'concept': 'Q895526'}, 'P1001', 'Q65']
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { VALUES ( ?s ) { ( ontology:Q12737077 ) ( ontology:Q895526 ) } . ?c rdf:type ?s }
Los Angeles
action count
action union
action filter_type
action find_reverse
entity Los Angeles
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Los Angeles
relation applies to jurisdiction
type authority organ
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Los Angeles'] [{'concept': 'authority organ'}, 'applies to jurisdiction', 'Los Angeles']
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { VALUES ( ?s ) { ( ontology:occupation ) ( ontology:authority_organ ) } . ?c rdf:type ?s }
[]
occupation authority organ
SYSTEM
2 occupations and 1 authority organs
Q16147110 Q1465319 Q5589234
(c(Q12737077),P1001,Q65) (c(Q895526),P1001,Q65)
action count
action union
action filter_type
action find_reverse
entity Q65
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q65
relation P1001
type Q895526
[ANSWER]
[{'concept': 'Q12737077'}, 'P1001', 'Q65'] [{'concept': 'Q895526'}, 'P1001', 'Q65']
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { VALUES ( ?s ) { ( ontology:Q12737077 ) ( ontology:Q895526 ) } . ?c rdf:type ?s }
Los Angeles City Controller Mayor of Los Angeles Government of Los Angeles
2 occupations and 1 authority organs
action count
action union
action filter_type
action find_reverse
entity Los Angeles
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Los Angeles
relation applies to jurisdiction
type authority organ
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Los Angeles'] [{'concept': 'authority organ'}, 'applies to jurisdiction', 'Los Angeles']
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { VALUES ( ?s ) { ( ontology:occupation ) ( ontology:authority_organ ) } . ?c rdf:type ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q65
P47
Q56061
USER
Who share the border with that one ?
action filter_type
action find
entity Q65
relation P47
type Q56061
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . resource:Q65 property:P47 ?k }
Los Angeles
action filter_type
action find
entity Los Angeles
relation shares border with
type administrative territorial entity
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . resource:Los_Angeles property:shares_border_with ?k }
[]
administrative territorial entity
Q47164 Q485716 Q39561
SYSTEM
Santa Monica, Glendale, Burbank
Q493378 Q846421 Q846406 Q485716 Q487119 Q846409 Q127856 Q984162 Q983859 Q39561 Q47164 Q494690 Q489197 Q852581 Q487315 Q752681 Q913346 Q621549
action filter_type
action find
entity Q65
relation P47
type Q56061
[ANSWERS] share the border with that one
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . resource:Q65 property:P47 ?k }
Culver City West Hollywood San Fernando Glendale Compton Gardena Beverly Hills Lomita El Segundo Burbank Santa Monica Carson Torrance South Pasadena Monterey Alhambra Hidden Hills Inglewood
Santa Monica, Glendale and Burbank share the border with that one
Santa Monica Glendale Burbank
action filter_type
action find
entity Los Angeles
relation shares border with
type administrative territorial entity
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . resource:Los_Angeles property:shares_border_with ?k }
[]