Simple Question (Direct)
Simple Question
Q1634140
P19
Q486972
USER
Which human settlement was Jaron and the Long Road to Love born in ?
(Q1634140,P19,c(Q486972))
action filter_type
action find
entity Q1634140
relation P19
type Q486972
['Q1634140', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q486972 . resource:Q1634140 property:P19 ?i }
Jaron and the Long Road to Love
action filter_type
action find
entity Jaron and the Long Road to Love
relation place of birth
type human settlement
['Jaron and the Long Road to Love', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:human_settlement . resource:Jaron_and_the_Long_Road_to_Love property:place_of_birth ?i }
[]
human settlement
Q2051179
SYSTEM
Tucker
Q2051179
(Q1634140,P19,c(Q486972))
action filter_type
action find
entity Q1634140
relation P19
type Q486972
The [ANSWER] was Jaron and the Long Road to Love born in
['Q1634140', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q486972 . resource:Q1634140 property:P19 ?i }
Tucker
The Tucker was Jaron and the Long Road to Love born in
Tucker
action filter_type
action find
entity Jaron and the Long Road to Love
relation place of birth
type human settlement
['Jaron and the Long Road to Love', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:human_settlement . resource:Jaron_and_the_Long_Road_to_Love property:place_of_birth ?i }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1634140
P175
Q2031291
USER
Who performed that person ?
(c(Q2031291),P175,Q2051179)
action filter_type
action find_reverse
entity Q1634140
relation P175
type Q2031291
[{'concept': 'Q2031291'}, 'P175', 'Q2051179']
SELECT DISTINCT ?c WHERE { ?c property:P175 resource:Q1634140 . ?c rdf:type ontology:Q2031291 }
Jaron and the Long Road to Love
action filter_type
action find_reverse
entity Jaron and the Long Road to Love
relation performer
type release
[{'concept': 'release'}, 'performer', 'Tucker']
SELECT DISTINCT ?c WHERE { ?c property:performer resource:Jaron_and_the_Long_Road_to_Love . ?c rdf:type ontology:release }
[]
release
Q7238972
SYSTEM
Pray for You
Q7238972
(c(Q2031291),P175,Q2051179)
action filter_type
action find_reverse
entity Q1634140
relation P175
type Q2031291
[ANSWER] performed that person
[{'concept': 'Q2031291'}, 'P175', 'Q2051179']
SELECT DISTINCT ?c WHERE { ?c property:P175 resource:Q1634140 . ?c rdf:type ontology:Q2031291 }
Pray for You
Pray for You performed that person
Pray for You
action filter_type
action find_reverse
entity Jaron and the Long Road to Love
relation performer
type release
[{'concept': 'release'}, 'performer', 'Tucker']
SELECT DISTINCT ?c WHERE { ?c property:performer resource:Jaron_and_the_Long_Road_to_Love . ?c rdf:type ontology:release }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q2031291
USER
How many languages are the languages of work for atleast 688 releases ?
(c(Q2031291),P407,c(Q34770))
action count
action atleast
action find_reverse_tuple_counts
relation P407
type Q34770
type Q2031291
value 688
[{'concept': 'Q2031291'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?i ) WHERE { ?t rdf:type ontology:Q34770 . ?k rdf:type ontology:Q2031291 . ?k property:P407 ?t } GROUP BY ?t } . FILTER ( ?i >= 688 ) }
action count
action atleast
action find_reverse_tuple_counts
relation language of work or name
type language
type release
value 688
[{'concept': 'release'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?i ) WHERE { ?t rdf:type ontology:language . ?k rdf:type ontology:release . ?k property:language_of_work_or_name ?t } GROUP BY ?t } . FILTER ( ?i >= 688 ) }
[]
language release
SYSTEM
2
Q1860 Q1321
(c(Q2031291),P407,c(Q34770))
action count
action atleast
action find_reverse_tuple_counts
relation P407
type Q34770
type Q2031291
value 688
[ANSWER]
[{'concept': 'Q2031291'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?i ) WHERE { ?t rdf:type ontology:Q34770 . ?k rdf:type ontology:Q2031291 . ?k property:P407 ?t } GROUP BY ?t } . FILTER ( ?i >= 688 ) }
English Spanish
2
action count
action atleast
action find_reverse_tuple_counts
relation language of work or name
type language
type release
value 688
[{'concept': 'release'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?i ) WHERE { ?t rdf:type ontology:language . ?k rdf:type ontology:release . ?k property:language_of_work_or_name ?t } GROUP BY ?t } . FILTER ( ?i >= 688 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2343043 Q1634140
P27
Q15617994
USER
Which administrative territories are Jaron and the Long Road to Love or Moses Chunga a civilian of ?
OR((Q1634140,P27,c(Q15617994)), (Q2343043,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1634140
relation P27
action find
entity Q2343043
relation P27
type Q15617994
{'OR': [['Q1634140', 'P27', {'concept': 'Q15617994'}], ['Q2343043', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1634140 property:P27 ?m } UNION { resource:Q2343043 property:P27 ?m } } . ?m rdf:type ontology:Q15617994 }
Moses Chunga Jaron and the Long Road to Love
action filter_type
action union
action find
entity Jaron and the Long Road to Love
relation country of citizenship
action find
entity Moses Chunga
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jaron and the Long Road to Love', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Moses Chunga', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Jaron_and_the_Long_Road_to_Love property:country_of_citizenship ?m } UNION { resource:Moses_Chunga property:country_of_citizenship ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q954 Q30
SYSTEM
Zimbabwe, United States of America
Q954 Q30
OR((Q1634140,P27,c(Q15617994)), (Q2343043,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1634140
relation P27
action find
entity Q2343043
relation P27
type Q15617994
[ANSWERS] are Jaron and the Long Road to Love or Moses Chunga a civilian of
{'OR': [['Q1634140', 'P27', {'concept': 'Q15617994'}], ['Q2343043', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1634140 property:P27 ?m } UNION { resource:Q2343043 property:P27 ?m } } . ?m rdf:type ontology:Q15617994 }
Zimbabwe United States of America
Zimbabwe and United States of America are Jaron and the Long Road to Love or Moses Chunga a civilian of
Zimbabwe United States of America
action filter_type
action union
action find
entity Jaron and the Long Road to Love
relation country of citizenship
action find
entity Moses Chunga
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jaron and the Long Road to Love', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Moses Chunga', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Jaron_and_the_Long_Road_to_Love property:country_of_citizenship ?m } UNION { resource:Moses_Chunga property:country_of_citizenship ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with max number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?o ) { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?x ) WHERE { ?r property:P530 ?s . ?r rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } GROUP BY ?r } } . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?n ) WHERE { ?d property:P530 ?j . ?d rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?d } . FILTER ( ?n = ?o ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?o ) { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?x ) WHERE { ?r property:diplomatic_relation ?s . ?r rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } } . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?n ) WHERE { ?d property:diplomatic_relation ?j . ?d rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . FILTER ( ?n = ?o ) }
[]
political territorial entity designation for an administrative territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have diplomatic relationships with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?o ) { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?x ) WHERE { ?r property:P530 ?s . ?r rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } GROUP BY ?r } } . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?n ) WHERE { ?d property:P530 ?j . ?d rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?d } . FILTER ( ?n = ?o ) }
Germany
Germany have diplomatic relationships with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?o ) { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?x ) WHERE { ?r property:diplomatic_relation ?s . ?r rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } } . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?n ) WHERE { ?d property:diplomatic_relation ?j . ?d rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . FILTER ( ?n = ?o ) }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q10543860 Q183
P530 P17
Q15617994
USER
Which administrative territories holds diplomatic relationship with Germany and are not Karlskoga Church present in ?
AND((Q183,P530,c(Q15617994)), NOT((Q10543860,P17,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P530
action find
entity Q10543860
relation P17
type Q15617994
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q10543860', 'P17', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?e WHERE { resource:Q183 property:P530 ?e . FILTER NOT EXISTS { resource:Q10543860 property:P17 ?e } . ?e rdf:type ontology:Q15617994 }
Karlskoga Church Germany
action filter_type
action difference
action find
entity Germany
relation diplomatic relation
action find
entity Karlskoga Church
relation country
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Karlskoga Church', 'country', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?e WHERE { resource:Germany property:diplomatic_relation ?e . FILTER NOT EXISTS { resource:Karlskoga_Church property:country ?e } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q736 Q45 Q967 Q1008 Q228 Q242 Q39 Q252 Q230 Q945
SYSTEM
Some of them are Ecuador, Portugal, Burundi, Côte d'Ivoire, Andorra, Belize, Switzerland, Indonesia, Georgia, Togo
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q833 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q730 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q347 Q227 Q225 Q224 Q222 Q96 Q229 Q228 Q17 Q902 Q1036 Q1037 Q1008 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q1019 Q1016 Q1011 Q945 Q869 Q953
AND((Q183,P530,c(Q15617994)), NOT((Q10543860,P17,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P530
action find
entity Q10543860
relation P17
type Q15617994
[ANSWERS] hold diplomatic relationship with Germany and are not Karlskoga Church present in
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q10543860', 'P17', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?e WHERE { resource:Q183 property:P530 ?e . FILTER NOT EXISTS { resource:Q10543860 property:P17 ?e } . ?e rdf:type ontology:Q15617994 }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Malaysia Mongolia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Cuba Belize Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Suriname Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Liechtenstein Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Andorra Japan Bangladesh Uganda Rwanda Côte d'Ivoire Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Madagascar Libya Cape Verde Togo Thailand Zambia
Ecuador, Portugal, Burundi, Côte d'Ivoire, Andorra, Belize, Switzerland, Indonesia, Georgia and Togo hold diplomatic relationship with Germany and are not Karlskoga Church present in
Ecuador Portugal Burundi Côte d'Ivoire Andorra Belize Switzerland Indonesia Georgia Togo
action filter_type
action difference
action find
entity Germany
relation diplomatic relation
action find
entity Karlskoga Church
relation country
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Karlskoga Church', 'country', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?e WHERE { resource:Germany property:diplomatic_relation ?e . FILTER NOT EXISTS { resource:Karlskoga_Church property:country ?e } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2342494 Q2031291
USER
How many administrative territories are the countries of origin of greater number of collectables and releases than that administrative territory ?
(c(Q2342494)|c(Q2031291),P495,c(Q15617994))
[[{'concept': 'Q2342494'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
[[{'concept': 'collectable'}, {'concept': 'release'}], '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:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
designation for an administrative territorial entity collectable release
Comparative|Count over More/Less|Mult. entity type|Clarification
Q228
SYSTEM
Did you mean Andorra ?
(c(Q2342494)|c(Q2031291),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
Did you mean Andorra ?
Andorra
[[{'concept': 'collectable'}, {'concept': 'release'}], '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:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Ecuador. Could you tell me the answer for that?
(c(Q2342494)|c(Q2031291),P495,c(Q15617994))
Q736
[[{'concept': 'Q2342494'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'collectable'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
77
Q801 Q419 Q668 Q414 Q142 Q55 Q145 Q12536 Q262 Q148 Q37 Q717 Q837 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q954 Q884 Q881 Q241 Q242 Q33 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q851 Q854 Q230 Q20 Q1041 Q27 Q28 Q1049 Q189 Q843 Q1028 Q224 Q222 Q96 Q17 Q902 Q1036 Q1033 Q191 Q298 Q114 Q117 Q754 Q212 Q213 Q215 Q218 Q219 Q833 Q1008 Q79 Q77 Q774 Q1014 Q1011 Q29 Q869
(c(Q2342494)|c(Q2031291),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
Israel Peru India Argentina France Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Lithuania Venezuela Nepal Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iraq Iran Zimbabwe South Korea Vietnam Cuba Belize Finland Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia Saudi Arabia Sri Lanka Georgia Norway Senegal Ireland Hungary Sudan Iceland Pakistan Morocco Croatia Albania Mexico Japan Bangladesh Uganda Nigeria Estonia Chile Kenya Ghana Trinidad and Tobago Ukraine Czech Republic Slovenia Romania Bulgaria Malaysia Côte d'Ivoire Egypt Uruguay Guatemala Liberia Cape Verde Spain Thailand
77
[[{'concept': 'collectable'}, {'concept': 'release'}], '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:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q34
P37
Q5962346
USER
What is the official language of Sweden ?
(Q34,P37,c(Q5962346))
action filter_type
action find
entity Q34
relation P37
type Q5962346
['Q34', 'P37', {'concept': 'Q5962346'}]
SELECT DISTINCT ?g WHERE { resource:Q34 property:P37 ?g . ?g rdf:type ontology:Q5962346 }
Sweden
action filter_type
action find
entity Sweden
relation official language
type classification scheme
['Sweden', 'official language', {'concept': 'classification scheme'}]
SELECT DISTINCT ?g WHERE { resource:Sweden property:official_language ?g . ?g rdf:type ontology:classification_scheme }
[]
classification scheme
Q56463
SYSTEM
Sami languages
Q56463
(Q34,P37,c(Q5962346))
action filter_type
action find
entity Q34
relation P37
type Q5962346
The official language of Sweden is the [ANSWER]
['Q34', 'P37', {'concept': 'Q5962346'}]
SELECT DISTINCT ?g WHERE { resource:Q34 property:P37 ?g . ?g rdf:type ontology:Q5962346 }
Sami languages
The official language of Sweden is the Sami languages
Sami languages
action filter_type
action find
entity Sweden
relation official language
type classification scheme
['Sweden', 'official language', {'concept': 'classification scheme'}]
SELECT DISTINCT ?g WHERE { resource:Sweden property:official_language ?g . ?g rdf:type ontology:classification_scheme }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q45
P127
Q41176
USER
Which building is under posessision of Portugal ?
(c(Q41176),P127,Q45)
action filter_type
action find_reverse
entity Q45
relation P127
type Q41176
[{'concept': 'Q41176'}, 'P127', 'Q45']
SELECT DISTINCT ?c WHERE { ?c property:P127 resource:Q45 . ?c rdf:type ontology:Q41176 }
Portugal
action filter_type
action find_reverse
entity Portugal
relation owned by
type building
[{'concept': 'building'}, 'owned by', 'Portugal']
SELECT DISTINCT ?c WHERE { ?c property:owned_by resource:Portugal . ?c rdf:type ontology:building }
[]
building
Q1073173
SYSTEM
Queluz National Palace
Q1073173
(c(Q41176),P127,Q45)
action filter_type
action find_reverse
entity Q45
relation P127
type Q41176
[ANSWER] is under posessision of Portugal
[{'concept': 'Q41176'}, 'P127', 'Q45']
SELECT DISTINCT ?c WHERE { ?c property:P127 resource:Q45 . ?c rdf:type ontology:Q41176 }
Queluz National Palace
Queluz National Palace is under posessision of Portugal
Queluz National Palace
action filter_type
action find_reverse
entity Portugal
relation owned by
type building
[{'concept': 'building'}, 'owned by', 'Portugal']
SELECT DISTINCT ?c WHERE { ?c property:owned_by resource:Portugal . ?c rdf:type ontology:building }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q45
P417
Q502895
USER
Which person is the patron saint of Portugal ?
(Q45,P417,c(Q502895))
action filter_type
action find
entity Q45
relation P417
type Q502895
['Q45', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q45 property:P417 ?g . ?g rdf:type ontology:Q502895 }
Portugal
action filter_type
action find
entity Portugal
relation patron saint
type common name
['Portugal', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Portugal property:patron_saint ?g . ?g rdf:type ontology:common_name }
[]
common name
Q48438
SYSTEM
Saint George
Q48438
(Q45,P417,c(Q502895))
action filter_type
action find
entity Q45
relation P417
type Q502895
[ANSWER] is the patron saint of Portugal
['Q45', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q45 property:P417 ?g . ?g rdf:type ontology:Q502895 }
Saint George
Saint George is the patron saint of Portugal
Saint George
action filter_type
action find
entity Portugal
relation patron saint
type common name
['Portugal', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Portugal property:patron_saint ?g . ?g rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q11424
USER
Which films did max number of people dub for ?
(c(Q11424),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q11424
type Q502895
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?m ) { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?f ) WHERE { ?n rdf:type ontology:Q11424 . ?a rdf:type ontology:Q502895 . ?n property:P725 ?a } GROUP BY ?n } } . FILTER ( ?o = ?m ) . { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?o ) WHERE { ?s rdf:type ontology:Q11424 . ?u rdf:type ontology:Q502895 . ?s property:P725 ?u } GROUP BY ?s } }
action argmax
action find_tuple_counts
relation voice actor
type film
type common name
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?m ) { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?f ) WHERE { ?n rdf:type ontology:film . ?a rdf:type ontology:common_name . ?n property:voice_actor ?a } GROUP BY ?n } } . FILTER ( ?o = ?m ) . { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?o ) WHERE { ?s rdf:type ontology:film . ?u rdf:type ontology:common_name . ?s property:voice_actor ?u } GROUP BY ?s } }
[]
common name film
Q271189
SYSTEM
Hercules
Q271189
(c(Q11424),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q11424
type Q502895
Max number of people dubbed as [ANSWER]
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?m ) { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?f ) WHERE { ?n rdf:type ontology:Q11424 . ?a rdf:type ontology:Q502895 . ?n property:P725 ?a } GROUP BY ?n } } . FILTER ( ?o = ?m ) . { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?o ) WHERE { ?s rdf:type ontology:Q11424 . ?u rdf:type ontology:Q502895 . ?s property:P725 ?u } GROUP BY ?s } }
Hercules
Max number of people dubbed as Hercules
Hercules
action argmax
action find_tuple_counts
relation voice actor
type film
type common name
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?m ) { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?f ) WHERE { ?n rdf:type ontology:film . ?a rdf:type ontology:common_name . ?n property:voice_actor ?a } GROUP BY ?n } } . FILTER ( ?o = ?m ) . { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?o ) WHERE { ?s rdf:type ontology:film . ?u rdf:type ontology:common_name . ?s property:voice_actor ?u } GROUP BY ?s } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26517769 Q1634140
P27 P17
Q15617994
USER
Which administrative territories are the countries of citizenship of Jaron and the Long Road to Love or are Manor House located in ?
OR((Q1634140,P27,c(Q15617994)), (Q26517769,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1634140
relation P27
action find
entity Q26517769
relation P17
type Q15617994
{'OR': [['Q1634140', 'P27', {'concept': 'Q15617994'}], ['Q26517769', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1634140 property:P27 ?g } UNION { resource:Q26517769 property:P17 ?g } } . ?g rdf:type ontology:Q15617994 }
Manor House Jaron and the Long Road to Love
action filter_type
action union
action find
entity Jaron and the Long Road to Love
relation country of citizenship
action find
entity Manor House
relation country
type designation for an administrative territorial entity
{'OR': [['Jaron and the Long Road to Love', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Manor House', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Jaron_and_the_Long_Road_to_Love property:country_of_citizenship ?g } UNION { resource:Manor_House property:country ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q145
SYSTEM
United States of America, United Kingdom
Q30 Q145
OR((Q1634140,P27,c(Q15617994)), (Q26517769,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1634140
relation P27
action find
entity Q26517769
relation P17
type Q15617994
[ANSWERS] are the countries of citizenship of Jaron and the Long Road to Love or are Manor House located in
{'OR': [['Q1634140', 'P27', {'concept': 'Q15617994'}], ['Q26517769', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1634140 property:P27 ?g } UNION { resource:Q26517769 property:P17 ?g } } . ?g rdf:type ontology:Q15617994 }
United States of America United Kingdom
United States of America and United Kingdom are the countries of citizenship of Jaron and the Long Road to Love or are Manor House located in
United States of America United Kingdom
action filter_type
action union
action find
entity Jaron and the Long Road to Love
relation country of citizenship
action find
entity Manor House
relation country
type designation for an administrative territorial entity
{'OR': [['Jaron and the Long Road to Love', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Manor House', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Jaron_and_the_Long_Road_to_Love property:country_of_citizenship ?g } UNION { resource:Manor_House property:country ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with around 85 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 85
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?x ) WHERE { ?g property:P530 ?z . ?g rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?x = 85 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 85
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?x ) WHERE { ?g property:diplomatic_relation ?z . ?g rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?x = 85 ) }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 85
[ANSWERS] have a diplomatic relationship with around 85 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?x ) WHERE { ?g property:P530 ?z . ?g rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?x = 85 ) }
Germany Australia
Germany and Australia have a diplomatic relationship with around 85 administrative territories
Germany Australia
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 85
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?x ) WHERE { ?g property:diplomatic_relation ?z . ?g rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?x = 85 ) }
[]