Simple Question (Direct)
Simple Question
Q577688
P21
Q290
USER
What is the sex of Al MacAdam ?
(Q577688,P21,c(Q290))
action filter_type
action find
entity Q577688
relation P21
type Q290
['Q577688', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q577688 property:P21 ?a . ?a rdf:type ontology:Q290 }
Al MacAdam
action filter_type
action find
entity Al MacAdam
relation gender
type sex
['Al MacAdam', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Al_MacAdam property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q577688,P21,c(Q290))
action filter_type
action find
entity Q577688
relation P21
type Q290
The sex of Al MacAdam is a [ANSWER]
['Q577688', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q577688 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
The sex of Al MacAdam is a male
male
action filter_type
action find
entity Al MacAdam
relation gender
type sex
['Al MacAdam', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Al_MacAdam property:gender ?a . ?a rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q577688
P54
Q12973014
USER
Which sports teams are Al MacAdam a member of ?
(Q577688,P54,c(Q12973014))
action filter_type
action find
entity Q577688
relation P54
type Q12973014
['Q577688', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12973014 . resource:Q577688 property:P54 ?x }
Al MacAdam
action filter_type
action find
entity Al MacAdam
relation member of sports team
type sports team
['Al MacAdam', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:sports_team . resource:Al_MacAdam property:member_of_sports_team ?x }
[]
sports team
Q192083 Q849315 Q192890
SYSTEM
Philadelphia Flyers, California Golden Seals, Vancouver Canucks
Q192083 Q546839 Q849315 Q192890 Q902512
(Q577688,P54,c(Q12973014))
action filter_type
action find
entity Q577688
relation P54
type Q12973014
The [ANSWERS] are Al MacAdam a member of
['Q577688', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12973014 . resource:Q577688 property:P54 ?x }
Philadelphia Flyers Cleveland Barons California Golden Seals Vancouver Canucks Minnesota North Stars
The Philadelphia Flyers, California Golden Seals and Vancouver Canucks are Al MacAdam a member of
Philadelphia Flyers California Golden Seals Vancouver Canucks
action filter_type
action find
entity Al MacAdam
relation member of sports team
type sports team
['Al MacAdam', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:sports_team . resource:Al_MacAdam property:member_of_sports_team ?x }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2078796 Q577688
P27
Q1048835
USER
Which political territories are Al MacAdam or Peter Vodosek a civilian of ?
OR((Q577688,P27,c(Q1048835)), (Q2078796,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q577688
relation P27
action find
entity Q2078796
relation P27
type Q1048835
{'OR': [['Q577688', 'P27', {'concept': 'Q1048835'}], ['Q2078796', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { ?c property:P27 ?h . VALUES ( ?c ) { ( resource:Q577688 ) ( resource:Q2078796 ) } } . ?h rdf:type ontology:Q1048835 }
Peter Vodosek Al MacAdam
action filter_type
action union
action find
entity Al MacAdam
relation country of citizenship
action find
entity Peter Vodosek
relation country of citizenship
type political territorial entity
{'OR': [['Al MacAdam', 'country of citizenship', {'concept': 'political territorial entity'}], ['Peter Vodosek', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { ?c property:country_of_citizenship ?h . VALUES ( ?c ) { ( resource:Al_MacAdam ) ( resource:Peter_Vodosek ) } } . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q40
SYSTEM
Canada, Austria
Q16 Q40
OR((Q577688,P27,c(Q1048835)), (Q2078796,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q577688
relation P27
action find
entity Q2078796
relation P27
type Q1048835
[ANSWERS] are Al MacAdam or Peter Vodosek a civilian of
{'OR': [['Q577688', 'P27', {'concept': 'Q1048835'}], ['Q2078796', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { ?c property:P27 ?h . VALUES ( ?c ) { ( resource:Q577688 ) ( resource:Q2078796 ) } } . ?h rdf:type ontology:Q1048835 }
Canada Austria
Canada and Austria are Al MacAdam or Peter Vodosek a civilian of
Canada Austria
action filter_type
action union
action find
entity Al MacAdam
relation country of citizenship
action find
entity Peter Vodosek
relation country of citizenship
type political territorial entity
{'OR': [['Al MacAdam', 'country of citizenship', {'concept': 'political territorial entity'}], ['Peter Vodosek', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { ?c property:country_of_citizenship ?h . VALUES ( ?c ) { ( resource:Al_MacAdam ) ( resource:Peter_Vodosek ) } } . ?h rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q173738
P27
Q502895
USER
Are Walter Wolf a native of those political territories ?
(Q173738,P27,Q16) (Q173738,P27,Q40)
action is_in
entity prev_answer
action find
entity Q173738
relation P27
['Q173738', 'P27', 'Q16'] ['Q173738', 'P27', 'Q40']
ASK WHERE { VALUES ( ?y ) { ( resource:Q16 ) ( resource:Q40 ) } . resource:Q173738 property:P27 ?y }
Walter Wolf
action is_in
entity prev_answer
action find
entity Walter Wolf
relation country of citizenship
['Walter Wolf', 'country of citizenship', 'Canada'] ['Walter Wolf', 'country of citizenship', 'Austria']
ASK WHERE { VALUES ( ?y ) { ( resource:Canada ) ( resource:Austria ) } . resource:Walter_Wolf property:country_of_citizenship ?y }
[]
common name
SYSTEM
YES
(Q173738,P27,Q16) (Q173738,P27,Q40)
action is_in
entity prev_answer
action find
entity Q173738
relation P27
[ANSWER]
['Q173738', 'P27', 'Q16'] ['Q173738', 'P27', 'Q40']
ASK WHERE { VALUES ( ?y ) { ( resource:Q16 ) ( resource:Q40 ) } . resource:Q173738 property:P27 ?y }
Yes
action is_in
entity prev_answer
action find
entity Walter Wolf
relation country of citizenship
['Walter Wolf', 'country of citizenship', 'Canada'] ['Walter Wolf', 'country of citizenship', 'Austria']
ASK WHERE { VALUES ( ?y ) { ( resource:Canada ) ( resource:Austria ) } . resource:Walter_Wolf property:country_of_citizenship ?y }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q16 Q183 Q664
P530
Q1048835
USER
Is Canada known to have diplomatic connections with Germany and New Zealand ?
(Q16,P530,Q183) (Q16,P530,Q664)
action is_in
entity Q16
action intersection
action find_reverse
entity Q183
relation P530
action find_reverse
entity Q664
relation P530
['Q16', 'P530', 'Q183'] ['Q16', 'P530', 'Q664']
ASK WHERE { resource:Q16 property:P530 resource:Q183 . resource:Q16 property:P530 resource:Q664 }
Canada Germany New Zealand
action is_in
entity Canada
action intersection
action find_reverse
entity Germany
relation diplomatic relation
action find_reverse
entity New Zealand
relation diplomatic relation
['Canada', 'diplomatic relation', 'Germany'] ['Canada', 'diplomatic relation', 'New Zealand']
ASK WHERE { resource:Canada property:diplomatic_relation resource:Germany . resource:Canada property:diplomatic_relation resource:New_Zealand }
[]
political territorial entity
SYSTEM
YES
(Q16,P530,Q183) (Q16,P530,Q664)
action is_in
entity Q16
action intersection
action find_reverse
entity Q183
relation P530
action find_reverse
entity Q664
relation P530
[ANSWER]
['Q16', 'P530', 'Q183'] ['Q16', 'P530', 'Q664']
ASK WHERE { resource:Q16 property:P530 resource:Q183 . resource:Q16 property:P530 resource:Q664 }
Yes
action is_in
entity Canada
action intersection
action find_reverse
entity Germany
relation diplomatic relation
action find_reverse
entity New Zealand
relation diplomatic relation
['Canada', 'diplomatic relation', 'Germany'] ['Canada', 'diplomatic relation', 'New Zealand']
ASK WHERE { resource:Canada property:diplomatic_relation resource:Germany . resource:Canada property:diplomatic_relation resource:New_Zealand }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q192083 Q30
P17
Q15617994
USER
Is Philadelphia Flyers a part of United States of America ?
(Q192083,P17,Q30)
action is_in
entity Q30
action find
entity Q192083
relation P17
['Q192083', 'P17', 'Q30']
ASK WHERE { resource:Q192083 property:P17 resource:Q30 }
Philadelphia Flyers United States of America
action is_in
entity United States of America
action find
entity Philadelphia Flyers
relation country
['Philadelphia Flyers', 'country', 'United States of America']
ASK WHERE { resource:Philadelphia_Flyers property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q192083,P17,Q30)
action is_in
entity Q30
action find
entity Q192083
relation P17
[ANSWER]
['Q192083', 'P17', 'Q30']
ASK WHERE { resource:Q192083 property:P17 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Philadelphia Flyers
relation country
['Philadelphia Flyers', 'country', 'United States of America']
ASK WHERE { resource:Philadelphia_Flyers property:country resource:United_States_of_America }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1006
P530
Q1048835 Q15617994
USER
How many administrative territories have ambassadorial relations with approximately the same number of political territories as Guinea ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1006
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?k ) WHERE { ?b rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 . ?b property:P530 ?s } GROUP BY ?b } . FILTER ( ?k = ?y ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:Q1006 property:P530 ?c . ?c rdf:type ontology:Q15617994 } } }
Guinea
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Guinea
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 ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?k ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity . ?b property:diplomatic_relation ?s } GROUP BY ?b } . FILTER ( ?k = ?y ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:Guinea property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
124
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q55 Q262 Q148 Q783 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q32 Q31 Q924 Q928 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q117 Q754 Q750 Q213 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q858 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1006
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?k ) WHERE { ?b rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 . ?b property:P530 ?s } GROUP BY ?b } . FILTER ( ?k = ?y ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:Q1006 property:P530 ?c . ?c rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Costa Rica Yemen Peru India Argentina Netherlands Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Luxembourg Belgium Tanzania Philippines Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ghana Trinidad and Tobago Bolivia Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Syria Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
124
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Guinea
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 ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?k ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity . ?b property:diplomatic_relation ?s } GROUP BY ?b } . FILTER ( ?k = ?y ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:Guinea property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1027
P530
Q1048835 Q15617994
USER
And how about Mauritius?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1027
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?w ) AS ?e ) WHERE { ?r property:P530 ?w . ?r rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { resource:Q1027 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?e = ?l ) }
Mauritius
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Mauritius
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 ( COUNT ( ?r ) AS ?o ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?w ) AS ?e ) WHERE { ?r property:diplomatic_relation ?w . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { resource:Mauritius property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e = ?l ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
124
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q55 Q262 Q148 Q783 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q32 Q31 Q924 Q928 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q117 Q754 Q750 Q213 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q858 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1027
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?w ) AS ?e ) WHERE { ?r property:P530 ?w . ?r rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { resource:Q1027 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?e = ?l ) }
Federated States of Micronesia Panama Costa Rica Yemen Peru India Argentina Netherlands Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Luxembourg Belgium Tanzania Philippines Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ghana Trinidad and Tobago Bolivia Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Syria Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
124
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Mauritius
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 ( COUNT ( ?r ) AS ?o ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?w ) AS ?e ) WHERE { ?r property:diplomatic_relation ?w . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { resource:Mauritius property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e = ?l ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have tactful political relations with atmost 7 political territories ?
(c(Q1048835),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 7
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?g ) WHERE { ?b property:P530 ?x . ?b rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1048835 } GROUP BY ?b } . FILTER ( ?g <= 7 ) }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 7
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?g ) WHERE { ?b property:diplomatic_relation ?x . ?b rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?b } . FILTER ( ?g <= 7 ) }
[]
political territorial entity political territorial entity
Q183 Q35 Q16
SYSTEM
Germany, Denmark, Canada
Q1000 Q40 Q781 Q778 Q183 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 7
[ANSWERS] have tactful political relations with atmost 7 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?g ) WHERE { ?b property:P530 ?x . ?b rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1048835 } GROUP BY ?b } . FILTER ( ?g <= 7 ) }
Gabon Austria Antigua and Barbuda The Bahamas Germany Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Germany, Denmark and Canada have tactful political relations with atmost 7 political territories
Germany Denmark Canada
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 7
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?g ) WHERE { ?b property:diplomatic_relation ?x . ?b rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?b } . FILTER ( ?g <= 7 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relations with max number of political territories ?
(c(Q1048835),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?f ) { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?o ) WHERE { ?h property:P530 ?k . ?k rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q1048835 } GROUP BY ?h } } . { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?v ) WHERE { ?r rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 . ?r property:P530 ?y } GROUP BY ?r } . FILTER ( ?v = ?f ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?f ) { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?o ) WHERE { ?h property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:political_territorial_entity } GROUP BY ?h } } . { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?v ) WHERE { ?r rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity . ?r property:diplomatic_relation ?y } GROUP BY ?r } . FILTER ( ?v = ?f ) }
[]
political territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWER] have diplomatic relations with max number of political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?f ) { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?o ) WHERE { ?h property:P530 ?k . ?k rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q1048835 } GROUP BY ?h } } . { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?v ) WHERE { ?r rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 . ?r property:P530 ?y } GROUP BY ?r } . FILTER ( ?v = ?f ) }
Australia
Australia have diplomatic relations with max number of political territories
Australia
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?f ) { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?o ) WHERE { ?h property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:political_territorial_entity } GROUP BY ?h } } . { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?v ) WHERE { ?r rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity . ?r property:diplomatic_relation ?y } GROUP BY ?r } . FILTER ( ?v = ?f ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P841
Q573 Q186081 Q502895
USER
Which people have min number of days or time intervals as principal feast day ?
(c(Q502895),P841,c(Q573)|c(Q186081))
action argmin
action union
action find_tuple_counts
relation P841
type Q502895
type Q573
action find_tuple_counts
relation P841
type Q502895
type Q186081
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q573'}, {'concept': 'Q186081'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) ?d WHERE { ?g rdf:type ?v . VALUES ( ?v ) { ( ontology:Q573 ) ( ontology:Q186081 ) } } GROUP BY ?d } } . FILTER ( ?s = ?k ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) ?y WHERE { { ?y property:P841 ?m . ?y rdf:type ontology:Q502895 . ?m rdf:type ontology:Q573 } UNION { ?y property:P841 ?m . ?y rdf:type ontology:Q502895 . ?m rdf:type ontology:Q186081 } } GROUP BY ?y } }
action argmin
action union
action find_tuple_counts
relation feast day
type common name
type day
action find_tuple_counts
relation feast day
type common name
type time interval
[{'concept': 'common name'}, 'feast day', [{'concept': 'day'}, {'concept': 'time interval'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) ?d WHERE { ?g rdf:type ?v . VALUES ( ?v ) { ( ontology:day ) ( ontology:time_interval ) } } GROUP BY ?d } } . FILTER ( ?s = ?k ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) ?y WHERE { { ?y property:feast_day ?m . ?y rdf:type ontology:common_name . ?m rdf:type ontology:day } UNION { ?y property:feast_day ?m . ?y rdf:type ontology:common_name . ?m rdf:type ontology:time_interval } } GROUP BY ?y } }
[]
day time interval common name
Q679784 Q3047912 Q167477
SYSTEM
Pier Giorgio Frassati, Seraphina Sforza, Anthony of Padua
Q384117 Q365797 Q3483257 Q679784 Q3483161 Q3483259 Q3483263 Q167477 Q3047912 Q269889 Q2701365
(c(Q502895),P841,c(Q573)|c(Q186081))
action argmin
action union
action find_tuple_counts
relation P841
type Q502895
type Q573
action find_tuple_counts
relation P841
type Q502895
type Q186081
[ANSWERS] have min number of days or time intervals as principal feast day
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q573'}, {'concept': 'Q186081'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) ?d WHERE { ?g rdf:type ?v . VALUES ( ?v ) { ( ontology:Q573 ) ( ontology:Q186081 ) } } GROUP BY ?d } } . FILTER ( ?s = ?k ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) ?y WHERE { { ?y property:P841 ?m . ?y rdf:type ontology:Q502895 . ?m rdf:type ontology:Q573 } UNION { ?y property:P841 ?m . ?y rdf:type ontology:Q502895 . ?m rdf:type ontology:Q186081 } } GROUP BY ?y } }
Aignan of Orleans Ahmad al-Tijani Sidi M'hamed Bou Qobrine Pier Giorgio Frassati Sidi Abder Rahman El Thaelebi Sidi M'hand Oumalek Sidi Mansour Anthony of Padua Seraphina Sforza Joanna, wife of Chuza Thomas Percy, 7th Earl of Northumberland
Pier Giorgio Frassati, Seraphina Sforza and Anthony of Padua have min number of days or time intervals as principal feast day
Pier Giorgio Frassati Seraphina Sforza Anthony of Padua
action argmin
action union
action find_tuple_counts
relation feast day
type common name
type day
action find_tuple_counts
relation feast day
type common name
type time interval
[{'concept': 'common name'}, 'feast day', [{'concept': 'day'}, {'concept': 'time interval'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) ?d WHERE { ?g rdf:type ?v . VALUES ( ?v ) { ( ontology:day ) ( ontology:time_interval ) } } GROUP BY ?d } } . FILTER ( ?s = ?k ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) ?y WHERE { { ?y property:feast_day ?m . ?y rdf:type ontology:common_name . ?m rdf:type ontology:day } UNION { ?y property:feast_day ?m . ?y rdf:type ontology:common_name . ?m rdf:type ontology:time_interval } } GROUP BY ?y } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q679784 Q3047912 Q167477
P21
Q290
USER
Which sexes do those people possess ?
(Q679784,P21,c(Q290)) (Q3047912,P21,c(Q290)) (Q167477,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q679784', 'P21', {'concept': 'Q290'}] ['Q3047912', 'P21', {'concept': 'Q290'}] ['Q167477', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . ?c property:P21 ?q . VALUES ( ?c ) { ( resource:Q384117 ) ( resource:Q365797 ) ( resource:Q3483257 ) } }
Pier Giorgio Frassati Seraphina Sforza Anthony of Padua
action filter_type
action find
entity prev_answer
relation gender
type sex
['Pier Giorgio Frassati', 'gender', {'concept': 'sex'}] ['Seraphina Sforza', 'gender', {'concept': 'sex'}] ['Anthony of Padua', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . ?c property:gender ?q . VALUES ( ?c ) { ( resource:Aignan_of_Orleans ) ( resource:Ahmad_al-Tijani ) ( resource:Sidi_M'hamed_Bou_Qobrine ) } }
[]
sex
Q6581097 Q6581072 Q6581097
SYSTEM
male for 1st, 3rd, female for 2nd
Q6581097 Q6581072 Q6581097
(Q679784,P21,c(Q290)) (Q3047912,P21,c(Q290)) (Q167477,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
[ANSWERS]
['Q679784', 'P21', {'concept': 'Q290'}] ['Q3047912', 'P21', {'concept': 'Q290'}] ['Q167477', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . ?c property:P21 ?q . VALUES ( ?c ) { ( resource:Q384117 ) ( resource:Q365797 ) ( resource:Q3483257 ) } }
male female male
Those people possess a male, female and male
male female male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Pier Giorgio Frassati', 'gender', {'concept': 'sex'}] ['Seraphina Sforza', 'gender', {'concept': 'sex'}] ['Anthony of Padua', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . ?c property:gender ?q . VALUES ( ?c ) { ( resource:Aignan_of_Orleans ) ( resource:Ahmad_al-Tijani ) ( resource:Sidi_M'hamed_Bou_Qobrine ) } }
[]