Simple Question (Direct)
Simple Question
Q5317101
P69
Q3918
USER
Which university is Dustin Hersee an alumni of ?
(Q5317101,P69,c(Q3918))
action filter_type
action find
entity Q5317101
relation P69
type Q3918
['Q5317101', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?u WHERE { resource:Q5317101 property:P69 ?u . ?u rdf:type ontology:Q3918 }
Dustin Hersee
action filter_type
action find
entity Dustin Hersee
relation educated at
type university
['Dustin Hersee', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?u WHERE { resource:Dustin_Hersee property:educated_at ?u . ?u rdf:type ontology:university }
[]
university
Q391028
SYSTEM
University of British Columbia
Q391028
(Q5317101,P69,c(Q3918))
action filter_type
action find
entity Q5317101
relation P69
type Q3918
The [ANSWER] is Dustin Hersee an alumni of
['Q5317101', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?u WHERE { resource:Q5317101 property:P69 ?u . ?u rdf:type ontology:Q3918 }
University of British Columbia
The University of British Columbia is Dustin Hersee an alumni of
University of British Columbia
action filter_type
action find
entity Dustin Hersee
relation educated at
type university
['Dustin Hersee', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?u WHERE { resource:Dustin_Hersee property:educated_at ?u . ?u rdf:type ontology:university }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5317101
P734
Q82799
USER
Which name is associated with Dustin Hersee ?
(Q5317101,P734,c(Q82799))
action filter_type
action find
entity Q5317101
relation P734
type Q82799
['Q5317101', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q5317101 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Dustin Hersee
action filter_type
action find
entity Dustin Hersee
relation family name
type name
['Dustin Hersee', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Dustin_Hersee property:family_name ?u . ?u rdf:type ontology:name }
[]
name
Q5744376
SYSTEM
Hersee
Q5744376
(Q5317101,P734,c(Q82799))
action filter_type
action find
entity Q5317101
relation P734
type Q82799
[ANSWER] is associated with Dustin [ANSWER]
['Q5317101', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q5317101 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Hersee
Hersee is associated with Dustin Hersee
Hersee
action filter_type
action find
entity Dustin Hersee
relation family name
type name
['Dustin Hersee', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Dustin_Hersee property:family_name ?u . ?u rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5317101
P54
Q847017
USER
Which sports club is Dustin Hersee a member of ?
(Q5317101,P54,c(Q847017))
action filter_type
action find
entity Q5317101
relation P54
type Q847017
['Q5317101', 'P54', {'concept': 'Q847017'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q847017 . resource:Q5317101 property:P54 ?s }
Dustin Hersee
action filter_type
action find
entity Dustin Hersee
relation member of sports team
type sports club
['Dustin Hersee', 'member of sports team', {'concept': 'sports club'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:sports_club . resource:Dustin_Hersee property:member_of_sports_team ?s }
[]
sports club
Q7863809
SYSTEM
UBC Thunderbirds
Q7863809
(Q5317101,P54,c(Q847017))
action filter_type
action find
entity Q5317101
relation P54
type Q847017
The [ANSWER] is Dustin Hersee a member of
['Q5317101', 'P54', {'concept': 'Q847017'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q847017 . resource:Q5317101 property:P54 ?s }
UBC Thunderbirds
The UBC Thunderbirds is Dustin Hersee a member of
UBC Thunderbirds
action filter_type
action find
entity Dustin Hersee
relation member of sports team
type sports club
['Dustin Hersee', 'member of sports team', {'concept': 'sports club'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:sports_club . resource:Dustin_Hersee property:member_of_sports_team ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5317101
P27
Q1048835
USER
Which political territory does that person belong to ?
(Q7863809,P27,c(Q1048835))
action filter_type
action find
entity Q5317101
relation P27
type Q1048835
['Q7863809', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . resource:Q5317101 property:P27 ?m }
Dustin Hersee
action filter_type
action find
entity Dustin Hersee
relation country of citizenship
type political territorial entity
['UBC Thunderbirds', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . resource:Dustin_Hersee property:country_of_citizenship ?m }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q7863809,P27,c(Q1048835))
action filter_type
action find
entity Q5317101
relation P27
type Q1048835
That person belongs to the [ANSWER]
['Q7863809', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . resource:Q5317101 property:P27 ?m }
Canada
That person belongs to the Canada
Canada
action filter_type
action find
entity Dustin Hersee
relation country of citizenship
type political territorial entity
['UBC Thunderbirds', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . resource:Dustin_Hersee property:country_of_citizenship ?m }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relationships with min number of political territories ?
(c(Q1048835),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?r WHERE { FILTER ( ?b = ?f ) . { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?b ) WHERE { ?r property:P530 ?z . ?r rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 } GROUP BY ?r } . { SELECT DISTINCT ( MIN ( ?a ) AS ?f ) { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?a ) WHERE { ?u property:P530 ?t . ?t rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q1048835 } GROUP BY ?u } } }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?r WHERE { FILTER ( ?b = ?f ) . { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?b ) WHERE { ?r property:diplomatic_relation ?z . ?r rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( MIN ( ?a ) AS ?f ) { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?a ) WHERE { ?u property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?u } } }
[]
political territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWERS] have diplomatic relationships with min number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?r WHERE { FILTER ( ?b = ?f ) . { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?b ) WHERE { ?r property:P530 ?z . ?r rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 } GROUP BY ?r } . { SELECT DISTINCT ( MIN ( ?a ) AS ?f ) { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?a ) WHERE { ?u property:P530 ?t . ?t rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q1048835 } GROUP BY ?u } } }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon, Grenada and Papua New Guinea have diplomatic relationships with min number of political territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?r WHERE { FILTER ( ?b = ?f ) . { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?b ) WHERE { ?r property:diplomatic_relation ?z . ?r rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( MIN ( ?a ) AS ?f ) { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?a ) WHERE { ?u property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?u } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories have a shared border with that political territory ?
(Q1000,P47,c(Q15617994))
['Q1000', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1241571 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
['Gabon', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Gabon property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q691
SYSTEM
Did you mean Papua New Guinea ?
(Q1000,P47,c(Q15617994)) (Q769,P47,c(Q15617994)) (Q691,P47,c(Q15617994))
[ANSWER]
['Q1000', 'P47', {'concept': 'Q15617994'}] ['Q769', 'P47', {'concept': 'Q15617994'}] ['Q691', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1241571 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Papua New Guinea ?
Papua New Guinea
['Gabon', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Grenada', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Papua New Guinea', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Gabon property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Gabon. Could you tell me the answer for that?
(Q1000,P47,c(Q15617994))
Q1000
['Q1000', 'P47', {'concept': 'Q15617994'}]
['Gabon', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
3
Q1009 Q983 Q971
(Q1000,P47,c(Q15617994))
[ANSWER]
['Q1000', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1241571 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Cameroon Equatorial Guinea Republic of the Congo
3
['Gabon', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Gabon property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q778
P495
Q1048835 Q2342494 Q7725634
USER
Which political territories are the countries of origin of approximately the same number of collectables and literary works as The Bahamas ?
(c(Q2342494)|c(Q7725634),P495,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q778
relation P495
type Q2342494
type Q7725634
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?f WHERE { { ?f rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q2342494 . ?q property:P495 ?f } UNION { ?q property:P495 ?f . ?f rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q7725634 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:P495 resource:Q778 . { { ?r rdf:type ontology:Q7725634 } UNION { ?r rdf:type ontology:Q2342494 } } } } . FILTER ( ?s = ?t ) }
The Bahamas
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity The Bahamas
relation country of origin
type collectable
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?f WHERE { { ?f rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:collectable . ?q property:country_of_origin ?f } UNION { ?q property:country_of_origin ?f . ?f rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:literary_work } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:country_of_origin resource:The_Bahamas . { { ?r rdf:type ontology:literary_work } UNION { ?r rdf:type ontology:collectable } } } } . FILTER ( ?s = ?t ) }
[]
political territorial entity collectable literary work
Q35 Q40 Q5705
SYSTEM
Denmark, Austria, Catalonia
Q1000 Q1747689 Q838261 Q769 Q763 Q664 Q766 Q1054923 Q13353 Q781 Q5705 Q1823 Q35 Q407199 Q778 Q691 Q234 Q2991382 Q40 Q9337 Q23635 Q31747 Q129286
(c(Q2342494)|c(Q7725634),P495,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q778
relation P495
type Q2342494
type Q7725634
[ANSWERS] are the countries of origin of approximately the same number of collectables and literary works as The Bahamas
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?f WHERE { { ?f rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q2342494 . ?q property:P495 ?f } UNION { ?q property:P495 ?f . ?f rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q7725634 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:P495 resource:Q778 . { { ?r rdf:type ontology:Q7725634 } UNION { ?r rdf:type ontology:Q2342494 } } } } . FILTER ( ?s = ?t ) }
Gabon Ancient Rome Federal Republic of Yugoslavia Grenada Saint Kitts and Nevis New Zealand Jamaica British Hong Kong Montserrat Antigua and Barbuda Catalonia Aceh Denmark Palestinian territories The Bahamas Papua New Guinea Flemish Region County of Provence Austria Flemish Region Bermuda Irish Free State British Raj
Denmark, Austria and Catalonia are the countries of origin of approximately the same number of collectables and literary works as The Bahamas
Denmark Austria Catalonia
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity The Bahamas
relation country of origin
type collectable
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?f WHERE { { ?f rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:collectable . ?q property:country_of_origin ?f } UNION { ?q property:country_of_origin ?f . ?f rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:literary_work } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:country_of_origin resource:The_Bahamas . { { ?r rdf:type ontology:literary_work } UNION { ?r rdf:type ontology:collectable } } } } . FILTER ( ?s = ?t ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q763
P495
Q1048835 Q2342494 Q7725634
USER
And how about Saint Kitts and Nevis?
(c(Q2342494)|c(Q7725634),P495,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q763
relation P495
type Q2342494
type Q7725634
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?q ) WHERE { { ?i property:P495 ?b . ?b rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q2342494 } UNION { ?i property:P495 ?b . ?b rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q7725634 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { ?r property:P495 resource:Q763 . { ?r rdf:type ?n . VALUES ( ?n ) { ( ontology:Q7725634 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?q = ?e ) }
Saint Kitts and Nevis
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity Saint Kitts and Nevis
relation country of origin
type collectable
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?q ) WHERE { { ?i property:country_of_origin ?b . ?b rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:collectable } UNION { ?i property:country_of_origin ?b . ?b rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:literary_work } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { ?r property:country_of_origin resource:Saint_Kitts_and_Nevis . { ?r rdf:type ?n . VALUES ( ?n ) { ( ontology:literary_work ) ( ontology:collectable ) } } } } . FILTER ( ?q = ?e ) }
[]
political territorial entity collectable literary work
Q35 Q40 Q5705
SYSTEM
Denmark, Austria, Catalonia
Q1000 Q1747689 Q838261 Q769 Q763 Q664 Q766 Q1054923 Q13353 Q781 Q5705 Q1823 Q35 Q407199 Q778 Q691 Q234 Q2991382 Q40 Q9337 Q23635 Q31747 Q129286
(c(Q2342494)|c(Q7725634),P495,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q763
relation P495
type Q2342494
type Q7725634
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?q ) WHERE { { ?i property:P495 ?b . ?b rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q2342494 } UNION { ?i property:P495 ?b . ?b rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q7725634 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { ?r property:P495 resource:Q763 . { ?r rdf:type ?n . VALUES ( ?n ) { ( ontology:Q7725634 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?q = ?e ) }
Gabon Ancient Rome Federal Republic of Yugoslavia Grenada Saint Kitts and Nevis New Zealand Jamaica British Hong Kong Montserrat Antigua and Barbuda Catalonia Aceh Denmark Palestinian territories The Bahamas Papua New Guinea Flemish Region County of Provence Austria Flemish Region Bermuda Irish Free State British Raj
Denmark Austria Catalonia
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity Saint Kitts and Nevis
relation country of origin
type collectable
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?q ) WHERE { { ?i property:country_of_origin ?b . ?b rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:collectable } UNION { ?i property:country_of_origin ?b . ?b rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:literary_work } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { ?r property:country_of_origin resource:Saint_Kitts_and_Nevis . { ?r rdf:type ?n . VALUES ( ?n ) { ( ontology:literary_work ) ( ontology:collectable ) } } } } . FILTER ( ?q = ?e ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relations with exactly 3 political territories ?
(c(Q1048835),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 3
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?y ) WHERE { ?s property:P530 ?f . ?f rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1048835 } GROUP BY ?s } . FILTER ( ?y = 3 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?y ) WHERE { ?s property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?s } . FILTER ( ?y = 3 ) }
[]
political territorial entity political territorial entity
Q35 Q664
SYSTEM
Denmark, New Zealand
Q35 Q664
(c(Q1048835),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 3
[ANSWERS] have diplomatic relations with exactly 3 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?y ) WHERE { ?s property:P530 ?f . ?f rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1048835 } GROUP BY ?s } . FILTER ( ?y = 3 ) }
Denmark New Zealand
Denmark and New Zealand have diplomatic relations with exactly 3 political territories
Denmark New Zealand
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?y ) WHERE { ?s property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?s } . FILTER ( ?y = 3 ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q35 Q664
P47
Q1048835
USER
Which political territories are adjacent to those ones ?
(Q35,P47,c(Q1048835)) (Q664,P47,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P47
type Q1048835
['Q35', 'P47', {'concept': 'Q1048835'}] ['Q664', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?u ) { ( resource:Q35 ) ( resource:Q664 ) } . ?o rdf:type ontology:Q1048835 . ?u property:P47 ?o }
Denmark New Zealand
action filter_type
action find
entity prev_answer
relation shares border with
type political territorial entity
['Denmark', 'shares border with', {'concept': 'political territorial entity'}] ['New Zealand', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?u ) { ( resource:Denmark ) ( resource:New_Zealand ) } . ?o rdf:type ontology:political_territorial_entity . ?u property:shares_border_with ?o }
[]
political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(Q35,P47,c(Q1048835)) (Q664,P47,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P47
type Q1048835
[ANSWERS] are adjacent to those ones
['Q35', 'P47', {'concept': 'Q1048835'}] ['Q664', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?u ) { ( resource:Q35 ) ( resource:Q664 ) } . ?o rdf:type ontology:Q1048835 . ?u property:P47 ?o }
Germany Australia
Germany and Australia are adjacent to those ones
Germany Australia
action filter_type
action find
entity prev_answer
relation shares border with
type political territorial entity
['Denmark', 'shares border with', {'concept': 'political territorial entity'}] ['New Zealand', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?u ) { ( resource:Denmark ) ( resource:New_Zealand ) } . ?o rdf:type ontology:political_territorial_entity . ?u property:shares_border_with ?o }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35
P1346
Q1190554
USER
Which event was won by Denmark ?
(c(Q1190554),P1346,Q35)
action filter_type
action find_reverse
entity Q35
relation P1346
type Q1190554
[{'concept': 'Q1190554'}, 'P1346', 'Q35']
SELECT DISTINCT ?i WHERE { ?i property:P1346 resource:Q35 . ?i rdf:type ontology:Q1190554 }
Denmark
action filter_type
action find_reverse
entity Denmark
relation winner
type event
[{'concept': 'event'}, 'winner', 'Denmark']
SELECT DISTINCT ?i WHERE { ?i property:winner resource:Denmark . ?i rdf:type ontology:event }
[]
event
Q1606958
SYSTEM
Battle of Bogesund
Q1606958
(c(Q1190554),P1346,Q35)
action filter_type
action find_reverse
entity Q35
relation P1346
type Q1190554
The [ANSWER] was won by Denmark
[{'concept': 'Q1190554'}, 'P1346', 'Q35']
SELECT DISTINCT ?i WHERE { ?i property:P1346 resource:Q35 . ?i rdf:type ontology:Q1190554 }
Battle of Bogesund
The Battle of Bogesund was won by Denmark
Battle of Bogesund
action filter_type
action find_reverse
entity Denmark
relation winner
type event
[{'concept': 'event'}, 'winner', 'Denmark']
SELECT DISTINCT ?i WHERE { ?i property:winner resource:Denmark . ?i rdf:type ontology:event }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35
P127
Q83405
USER
Which factory is under posessision of Denmark ?
(c(Q83405),P127,Q35)
action filter_type
action find_reverse
entity Q35
relation P127
type Q83405
[{'concept': 'Q83405'}, 'P127', 'Q35']
SELECT DISTINCT ?m WHERE { ?m property:P127 resource:Q35 . ?m rdf:type ontology:Q83405 }
Denmark
action filter_type
action find_reverse
entity Denmark
relation owned by
type factory
[{'concept': 'factory'}, 'owned by', 'Denmark']
SELECT DISTINCT ?m WHERE { ?m property:owned_by resource:Denmark . ?m rdf:type ontology:factory }
[]
factory
Q7374497
SYSTEM
Royal Mint
Q7374497
(c(Q83405),P127,Q35)
action filter_type
action find_reverse
entity Q35
relation P127
type Q83405
[ANSWER] is under posessision of Denmark
[{'concept': 'Q83405'}, 'P127', 'Q35']
SELECT DISTINCT ?m WHERE { ?m property:P127 resource:Q35 . ?m rdf:type ontology:Q83405 }
Royal Mint
Royal Mint is under posessision of Denmark
Royal Mint
action filter_type
action find_reverse
entity Denmark
relation owned by
type factory
[{'concept': 'factory'}, 'owned by', 'Denmark']
SELECT DISTINCT ?m WHERE { ?m property:owned_by resource:Denmark . ?m rdf:type ontology:factory }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35
P36
Q56061
USER
Which administrative territory is called the capital of Denmark ?
(Q35,P36,c(Q56061))
action filter_type
action find
entity Q35
relation P36
type Q56061
['Q35', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q35 property:P36 ?s . ?s rdf:type ontology:Q56061 }
Denmark
action filter_type
action find
entity Denmark
relation capital
type administrative territorial entity
['Denmark', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Denmark property:capital ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1748
SYSTEM
Copenhagen
Q1748
(Q35,P36,c(Q56061))
action filter_type
action find
entity Q35
relation P36
type Q56061
The [ANSWER] is called the capital of Denmark
['Q35', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q35 property:P36 ?s . ?s rdf:type ontology:Q56061 }
Copenhagen
The Copenhagen is called the capital of Denmark
Copenhagen
action filter_type
action find
entity Denmark
relation capital
type administrative territorial entity
['Denmark', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Denmark property:capital ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35
P194
Q1752346
USER
Which assembly governs Denmark ?
(Q35,P194,c(Q1752346))
action filter_type
action find
entity Q35
relation P194
type Q1752346
['Q35', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q1752346 . resource:Q35 property:P194 ?i }
Denmark
action filter_type
action find
entity Denmark
relation legislative body
type assembly
['Denmark', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:assembly . resource:Denmark property:legislative_body ?i }
[]
assembly
Q209151
SYSTEM
Folketing
Q209151
(Q35,P194,c(Q1752346))
action filter_type
action find
entity Q35
relation P194
type Q1752346
[ANSWER] governs Denmark
['Q35', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q1752346 . resource:Q35 property:P194 ?i }
Folketing
Folketing governs Denmark
Folketing
action filter_type
action find
entity Denmark
relation legislative body
type assembly
['Denmark', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:assembly . resource:Denmark property:legislative_body ?i }
[]