Simple Question (Direct)
Simple Question
Q18360588
P641
Q349
USER
Which sport was Ulrik Saltnes a part of ?
(Q18360588,P641,c(Q349))
action filter_type
action find
entity Q18360588
relation P641
type Q349
['Q18360588', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q18360588 property:P641 ?h . ?h rdf:type ontology:Q349 }
Ulrik Saltnes
action filter_type
action find
entity Ulrik Saltnes
relation sport
type sport
['Ulrik Saltnes', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:Ulrik_Saltnes property:sport ?h . ?h rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q18360588,P641,c(Q349))
action filter_type
action find
entity Q18360588
relation P641
type Q349
Which sport was Ulrik Saltnes a part of
['Q18360588', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q18360588 property:P641 ?h . ?h rdf:type ontology:Q349 }
association football
Which sport was Ulrik Saltnes a part of
association football
action filter_type
action find
entity Ulrik Saltnes
relation sport
type sport
['Ulrik Saltnes', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:Ulrik_Saltnes property:sport ?h . ?h rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18360588
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q2736,P27,c(Q15617994))
action filter_type
action find
entity Q18360588
relation P27
type Q15617994
['Q2736', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q18360588 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Ulrik Saltnes
action filter_type
action find
entity Ulrik Saltnes
relation country of citizenship
type designation for an administrative territorial entity
['association football', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Ulrik_Saltnes property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20
SYSTEM
Norway
Q20
(Q2736,P27,c(Q15617994))
action filter_type
action find
entity Q18360588
relation P27
type Q15617994
That person belongs to [ANSWER]
['Q2736', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q18360588 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Norway
That person belongs to Norway
Norway
action filter_type
action find
entity Ulrik Saltnes
relation country of citizenship
type designation for an administrative territorial entity
['association football', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Ulrik_Saltnes property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q20
P47
Q1048835 Q15617994
USER
How many political territories and administrative territories are bordered by Norway ?
(Q20,P47,c(Q1048835)) (Q20,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q20
relation P47
type Q1048835
action filter_type
action find
entity Q20
relation P47
type Q15617994
['Q20', 'P47', {'concept': 'Q1048835'}] ['Q20', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { VALUES ( ?y ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?m rdf:type ?y }
Norway
action count
action union
action filter_type
action find
entity Norway
relation shares border with
type political territorial entity
action filter_type
action find
entity Norway
relation shares border with
type designation for an administrative territorial entity
['Norway', 'shares border with', {'concept': 'political territorial entity'}] ['Norway', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { VALUES ( ?y ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?m rdf:type ?y }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
1 political territories and 3 administrative territories
Q33 Q159 Q35 Q34
(Q20,P47,c(Q1048835)) (Q20,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q20
relation P47
type Q1048835
action filter_type
action find
entity Q20
relation P47
type Q15617994
[ANSWER]
['Q20', 'P47', {'concept': 'Q1048835'}] ['Q20', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { VALUES ( ?y ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?m rdf:type ?y }
Finland Russia Denmark Sweden
1 political territories and 3 administrative territories
action count
action union
action filter_type
action find
entity Norway
relation shares border with
type political territorial entity
action filter_type
action find
entity Norway
relation shares border with
type designation for an administrative territorial entity
['Norway', 'shares border with', {'concept': 'political territorial entity'}] ['Norway', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { VALUES ( ?y ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?m rdf:type ?y }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q15617994 Q15617994
USER
How many administrative territories have diplomatic associations with atmost 45 political territories and administrative territories ?
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action count
action atmost
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 45
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) ?w WHERE { { ?w rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 . ?w property:P530 ?q } UNION { ?w property:P530 ?q . ?w rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } } GROUP BY ?w } . FILTER ( ?r <= 45 ) }
action count
action atmost
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 45
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) ?w WHERE { { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity . ?w property:diplomatic_relation ?q } UNION { ?w property:diplomatic_relation ?q . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?w } . FILTER ( ?r <= 45 ) }
[]
political territorial entity designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
158
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action count
action atmost
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 45
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) ?w WHERE { { ?w rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 . ?w property:P530 ?q } UNION { ?w property:P530 ?q . ?w rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } } GROUP BY ?w } . FILTER ( ?r <= 45 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
158
action count
action atmost
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 45
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) ?w WHERE { { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity . ?w property:diplomatic_relation ?q } UNION { ?w property:diplomatic_relation ?q . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?w } . FILTER ( ?r <= 45 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10350 Q20
P47
Q15617994
USER
Which administrative territories have a shared border with Norway or Vigone ?
OR((Q20,P47,c(Q15617994)), (Q10350,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q20
relation P47
action find
entity Q10350
relation P47
type Q15617994
{'OR': [['Q20', 'P47', {'concept': 'Q15617994'}], ['Q10350', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q20 property:P47 ?k } UNION { resource:Q10350 property:P47 ?k } } . ?k rdf:type ontology:Q15617994 }
Vigone Norway
action filter_type
action union
action find
entity Norway
relation shares border with
action find
entity Vigone
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Norway', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Vigone', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Norway property:shares_border_with ?k } UNION { resource:Vigone property:shares_border_with ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q9449 Q159 Q10351 Q9242 Q9105 Q33 Q34 Q9239 Q10362 Q9534
SYSTEM
Macello, Russia, Villafranca Piemonte, Cercenasco, Buriasco, Finland, Sweden, Cavour, Virle Piemonte, Pancalieri
Q9449 Q159 Q10351 Q9242 Q9105 Q33 Q34 Q9239 Q10362 Q9534
OR((Q20,P47,c(Q15617994)), (Q10350,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q20
relation P47
action find
entity Q10350
relation P47
type Q15617994
[ANSWERS] have a shared border with Norway or Vigone
{'OR': [['Q20', 'P47', {'concept': 'Q15617994'}], ['Q10350', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q20 property:P47 ?k } UNION { resource:Q10350 property:P47 ?k } } . ?k rdf:type ontology:Q15617994 }
Macello Russia Villafranca Piemonte Cercenasco Buriasco Finland Sweden Cavour Virle Piemonte Pancalieri
Macello, Russia, Villafranca Piemonte, Cercenasco, Buriasco, Finland, Sweden, Cavour, Virle Piemonte and Pancalieri have a shared border with Norway or Vigone
Macello Russia Villafranca Piemonte Cercenasco Buriasco Finland Sweden Cavour Virle Piemonte Pancalieri
action filter_type
action union
action find
entity Norway
relation shares border with
action find
entity Vigone
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Norway', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Vigone', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Norway property:shares_border_with ?k } UNION { resource:Vigone property:shares_border_with ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q7725634 Q15416
USER
How many administrative territories are the origins of greater number of literary works or television programs than that administrative territory ?
(c(Q7725634)|c(Q15416),P495,c(Q15617994))
[[{'concept': 'Q7725634'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
[[{'concept': 'literary work'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program }
[]
designation for an administrative territorial entity literary work television program
Comparative|Count over More/Less|Mult. entity type|Clarification
Q9449
SYSTEM
Did you mean Macello ?
(c(Q7725634)|c(Q15416),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
Did you mean Macello ?
Macello
[[{'concept': 'literary work'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Russia. Could you tell me the answer for that?
(c(Q7725634)|c(Q15416),P495,c(Q15617994))
Q159
[[{'concept': 'Q7725634'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'literary work'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
24
Q668 Q414 Q142 Q55 Q145 Q148 Q717 Q43 Q155 Q884 Q33 Q31 Q30 Q36 Q34 Q928 Q38 Q739 Q27 Q843 Q96 Q17 Q298 Q29
(c(Q7725634)|c(Q15416),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
India Argentina France Netherlands United Kingdom People's Republic of China Venezuela Turkey Brazil South Korea Finland Belgium United States of America Poland Sweden Philippines Italy Colombia Ireland Pakistan Mexico Japan Chile Spain
24
[[{'concept': 'literary work'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q536603 Q18360588
P106
Q12737077
USER
Which occupations do Ulrik Saltnes or Louise Marleau do for a living ?
OR((Q18360588,P106,c(Q12737077)), (Q536603,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q18360588
relation P106
action find
entity Q536603
relation P106
type Q12737077
{'OR': [['Q18360588', 'P106', {'concept': 'Q12737077'}], ['Q536603', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?x ) { ( resource:Q18360588 ) ( resource:Q536603 ) } . ?x property:P106 ?j } . ?j rdf:type ontology:Q12737077 }
Louise Marleau Ulrik Saltnes
action filter_type
action union
action find
entity Ulrik Saltnes
relation occupation
action find
entity Louise Marleau
relation occupation
type occupation
{'OR': [['Ulrik Saltnes', 'occupation', {'concept': 'occupation'}], ['Louise Marleau', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?x ) { ( resource:Ulrik_Saltnes ) ( resource:Louise_Marleau ) } . ?x property:occupation ?j } . ?j rdf:type ontology:occupation }
[]
occupation
Q33999 Q937857
SYSTEM
actor, association football player
Q33999 Q937857
OR((Q18360588,P106,c(Q12737077)), (Q536603,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q18360588
relation P106
action find
entity Q536603
relation P106
type Q12737077
[ANSWERS] Ulrik Saltnes or Louise Marleau do for a living
{'OR': [['Q18360588', 'P106', {'concept': 'Q12737077'}], ['Q536603', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?x ) { ( resource:Q18360588 ) ( resource:Q536603 ) } . ?x property:P106 ?j } . ?j rdf:type ontology:Q12737077 }
actor association football player
Actor and association football player Ulrik Saltnes or Louise Marleau do for a living
actor association football player
action filter_type
action union
action find
entity Ulrik Saltnes
relation occupation
action find
entity Louise Marleau
relation occupation
type occupation
{'OR': [['Ulrik Saltnes', 'occupation', {'concept': 'occupation'}], ['Louise Marleau', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?x ) { ( resource:Ulrik_Saltnes ) ( resource:Louise_Marleau ) } . ?x property:occupation ?j } . ?j rdf:type ontology:occupation }
[]