Simple Question (Direct)
Simple Question
Q5300870
P102
Q7210356
USER
Which political organization is Doug Rollins a member of ?
(Q5300870,P102,c(Q7210356))
action filter_type
action find
entity Q5300870
relation P102
type Q7210356
['Q5300870', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q7210356 . resource:Q5300870 property:P102 ?m }
Doug Rollins
action filter_type
action find
entity Doug Rollins
relation member of political party
type political organization
['Doug Rollins', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_organization . resource:Doug_Rollins property:member_of_political_party ?m }
[]
political organization
Q826977
SYSTEM
Progressive Conservative Party of Ontario
Q826977
(Q5300870,P102,c(Q7210356))
action filter_type
action find
entity Q5300870
relation P102
type Q7210356
The [ANSWER] is Doug Rollins a member of
['Q5300870', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q7210356 . resource:Q5300870 property:P102 ?m }
Progressive Conservative Party of Ontario
The Progressive Conservative Party of Ontario is Doug Rollins a member of
Progressive Conservative Party of Ontario
action filter_type
action find
entity Doug Rollins
relation member of political party
type political organization
['Doug Rollins', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_organization . resource:Doug_Rollins property:member_of_political_party ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5300870
P21
Q290
USER
Which sex does that person have ?
(Q826977,P21,c(Q290))
action filter_type
action find
entity Q5300870
relation P21
type Q290
['Q826977', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q5300870 property:P21 ?y . ?y rdf:type ontology:Q290 }
Doug Rollins
action filter_type
action find
entity Doug Rollins
relation gender
type sex
['Progressive Conservative Party of Ontario', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Doug_Rollins property:gender ?y . ?y rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q826977,P21,c(Q290))
action filter_type
action find
entity Q5300870
relation P21
type Q290
That person has a [ANSWER]
['Q826977', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q5300870 property:P21 ?y . ?y rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Doug Rollins
relation gender
type sex
['Progressive Conservative Party of Ontario', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Doug_Rollins property:gender ?y . ?y rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P21
Q290 Q502895
USER
How many sexes are the sex of less number of people than that sex ?
(c(Q502895),P21,c(Q290))
action count
action less
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q502895
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ontology:Q502895 . ?p property:P21 resource:Q6581097 } } . FILTER ( ?z < ?d ) . { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?z ) WHERE { ?j rdf:type ontology:Q502895 . ?e rdf:type ontology:Q290 . ?j property:P21 ?e } GROUP BY ?e } }
action count
action less
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find_reverse
entity male
relation gender
type common name
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ontology:common_name . ?p property:gender resource:male } } . FILTER ( ?z < ?d ) . { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?z ) WHERE { ?j rdf:type ontology:common_name . ?e rdf:type ontology:sex . ?j property:gender ?e } GROUP BY ?e } }
[]
sex common name
SYSTEM
1
Q6581072
(c(Q502895),P21,c(Q290))
action count
action less
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ontology:Q502895 . ?p property:P21 resource:Q6581097 } } . FILTER ( ?z < ?d ) . { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?z ) WHERE { ?j rdf:type ontology:Q502895 . ?e rdf:type ontology:Q290 . ?j property:P21 ?e } GROUP BY ?e } }
female
1
action count
action less
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find_reverse
entity male
relation gender
type common name
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ontology:common_name . ?p property:gender resource:male } } . FILTER ( ?z < ?d ) . { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?z ) WHERE { ?j rdf:type ontology:common_name . ?e rdf:type ontology:sex . ?j property:gender ?e } GROUP BY ?e } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1652577 Q826977
P17
Q1048835
USER
Which political territories are Progressive Conservative Party of Ontario or Hüttenfeld a part of ?
OR((Q826977,P17,c(Q1048835)), (Q1652577,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q826977
relation P17
action find
entity Q1652577
relation P17
type Q1048835
{'OR': [['Q826977', 'P17', {'concept': 'Q1048835'}], ['Q1652577', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1048835 . { { resource:Q826977 property:P17 ?e } UNION { resource:Q1652577 property:P17 ?e } } }
Hüttenfeld Progressive Conservative Party of Ontario
action filter_type
action union
action find
entity Progressive Conservative Party of Ontario
relation country
action find
entity Hüttenfeld
relation country
type political territorial entity
{'OR': [['Progressive Conservative Party of Ontario', 'country', {'concept': 'political territorial entity'}], ['Hüttenfeld', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:political_territorial_entity . { { resource:Progressive_Conservative_Party_of_Ontario property:country ?e } UNION { resource:Hüttenfeld property:country ?e } } }
[]
political territorial entity
Q16 Q183
SYSTEM
Canada, Germany
Q16 Q183
OR((Q826977,P17,c(Q1048835)), (Q1652577,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q826977
relation P17
action find
entity Q1652577
relation P17
type Q1048835
In [ANSWERS] are Progressive Conservative Party of Ontario or Hüttenfeld a part of
{'OR': [['Q826977', 'P17', {'concept': 'Q1048835'}], ['Q1652577', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1048835 . { { resource:Q826977 property:P17 ?e } UNION { resource:Q1652577 property:P17 ?e } } }
Canada Germany
In Canada and Germany are Progressive Conservative Party of Ontario or Hüttenfeld a part of
Canada Germany
action filter_type
action union
action find
entity Progressive Conservative Party of Ontario
relation country
action find
entity Hüttenfeld
relation country
type political territorial entity
{'OR': [['Progressive Conservative Party of Ontario', 'country', {'concept': 'political territorial entity'}], ['Hüttenfeld', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:political_territorial_entity . { { resource:Progressive_Conservative_Party_of_Ontario property:country ?e } UNION { resource:Hüttenfeld property:country ?e } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which administrative territories have diplomatic relations with exactly 2 political territories ?
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 2
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?e ) WHERE { ?h rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 . ?h property:P530 ?f } GROUP BY ?h } . FILTER ( ?e = 2 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?e ) WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity . ?h property:diplomatic_relation ?f } GROUP BY ?h } . FILTER ( ?e = 2 ) }
[]
political territorial entity designation for an administrative territorial entity
Q55 Q148 Q184
SYSTEM
Netherlands, People's Republic of China, Belarus
Q804 Q800 Q419 Q668 Q414 Q55 Q148 Q783 Q45 Q41 Q796 Q794 Q954 Q881 Q811 Q31 Q924 Q928 Q733 Q734 Q736 Q233 Q1041 Q184 Q1028 Q786 Q225 Q224 Q96 Q347 Q17 Q902 Q1036 Q1033 Q963 Q298 Q117 Q750 Q213 Q215 Q219 Q916 Q1009 Q774 Q810 Q29 Q869
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 2
[ANSWERS] have diplomatic relations with exactly 2 political territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?e ) WHERE { ?h rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 . ?h property:P530 ?f } GROUP BY ?h } . FILTER ( ?e = 2 ) }
Panama Costa Rica Peru India Argentina Netherlands People's Republic of China Honduras Portugal Greece Iraq Iran Zimbabwe Vietnam Nicaragua Belgium Tanzania Philippines Paraguay Guyana Ecuador Malta Senegal Belarus Morocco Dominican Republic Bosnia and Herzegovina Croatia Mexico Liechtenstein Japan Bangladesh Uganda Nigeria Botswana Chile Ghana Bolivia Czech Republic Slovenia Bulgaria Angola Cameroon Guatemala Jordan Spain Thailand
Netherlands, People's Republic of China and Belarus have diplomatic relations with exactly 2 political territories
Netherlands People's Republic of China Belarus
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?e ) WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity . ?h property:diplomatic_relation ?f } GROUP BY ?h } . FILTER ( ?e = 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q16
P463
Q874405 Q43229
USER
How many social groups or organizations were Canada a member of ?
(Q16,P463,c(Q874405)) (Q16,P463,c(Q43229))
action count
action union
action filter_type
action find
entity Q16
relation P463
type Q874405
action filter_type
action find
entity Q16
relation P463
type Q43229
['Q16', 'P463', {'concept': 'Q874405'}] ['Q16', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { VALUES ( ?u ) { ( ontology:Q43229 ) ( ontology:Q874405 ) } . ?h rdf:type ?u }
Canada
action count
action union
action filter_type
action find
entity Canada
relation member of
type social group
action filter_type
action find
entity Canada
relation member of
type organization
['Canada', 'member of', {'concept': 'social group'}] ['Canada', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { VALUES ( ?u ) { ( ontology:organization ) ( ontology:social_group ) } . ?h rdf:type ?u }
[]
social group organization
SYSTEM
12
Q340195 Q191384 Q899770 Q41550 Q3772571 Q123759 Q782942 Q656801 Q7825 Q170481 Q38130 Q827525
(Q16,P463,c(Q874405)) (Q16,P463,c(Q43229))
action count
action union
action filter_type
action find
entity Q16
relation P463
type Q874405
action filter_type
action find
entity Q16
relation P463
type Q43229
[ANSWER]
['Q16', 'P463', {'concept': 'Q874405'}] ['Q16', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { VALUES ( ?u ) { ( ontology:Q43229 ) ( ontology:Q874405 ) } . ?h rdf:type ?u }
African Development Bank International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes Organisation for Economic Co-operation and Development Caribbean Development Bank Organization of American States Australia Group International Finance Corporation World Trade Organization Asia-Pacific Economic Cooperation League of Nations International Development Association
12
action count
action union
action filter_type
action find
entity Canada
relation member of
type social group
action filter_type
action find
entity Canada
relation member of
type organization
['Canada', 'member of', {'concept': 'social group'}] ['Canada', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { VALUES ( ?u ) { ( ontology:organization ) ( ontology:social_group ) } . ?h rdf:type ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q184
P85
Q7725634
USER
What is the anthem for Belarus ?
(Q184,P85,c(Q7725634))
action filter_type
action find
entity Q184
relation P85
type Q7725634
['Q184', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?t WHERE { resource:Q184 property:P85 ?t . ?t rdf:type ontology:Q7725634 }
Belarus
action filter_type
action find
entity Belarus
relation anthem
type literary work
['Belarus', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?t WHERE { resource:Belarus property:anthem ?t . ?t rdf:type ontology:literary_work }
[]
literary work
Q166350
SYSTEM
My Belarusy
Q166350
(Q184,P85,c(Q7725634))
action filter_type
action find
entity Q184
relation P85
type Q7725634
The anthem for Belarus is the [ANSWER]
['Q184', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?t WHERE { resource:Q184 property:P85 ?t . ?t rdf:type ontology:Q7725634 }
My Belarusy
The anthem for Belarus is the My Belarusy
My Belarusy
action filter_type
action find
entity Belarus
relation anthem
type literary work
['Belarus', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?t WHERE { resource:Belarus property:anthem ?t . ?t rdf:type ontology:literary_work }
[]