Simple Question (Direct)
Simple Question
Q3041245
P21
Q290
USER
Which sex does Duncan McGregor possess ?
(Q3041245,P21,c(Q290))
action filter_type
action find
entity Q3041245
relation P21
type Q290
['Q3041245', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q3041245 property:P21 ?d . ?d rdf:type ontology:Q290 }
Duncan McGregor
action filter_type
action find
entity Duncan McGregor
relation gender
type sex
['Duncan McGregor', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Duncan_McGregor property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3041245,P21,c(Q290))
action filter_type
action find
entity Q3041245
relation P21
type Q290
Duncan McGregor possesses a [ANSWER]
['Q3041245', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q3041245 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
Duncan McGregor possesses a male
male
action filter_type
action find
entity Duncan McGregor
relation gender
type sex
['Duncan McGregor', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Duncan_McGregor property:gender ?d . ?d rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P136
Q502895
USER
Which people have that sex as their category ?
(c(Q502895),P136,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
[{'concept': 'Q502895'}, 'P136', 'Q6581097']
SELECT DISTINCT ?p WHERE { ?p property:P136 resource:Q6581097 . ?p rdf:type ontology:Q502895 }
male
action filter_type
action find_reverse
entity male
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'male']
SELECT DISTINCT ?p WHERE { ?p property:genre resource:male . ?p rdf:type ontology:common_name }
[]
common name
Q313288 Q18221191 Q23766532
SYSTEM
Augustus Pugin, Alessandro Gregorio Capponi, Pierre Laviron
Q19796723 Q23766532 Q313288 Q18221191
(c(Q502895),P136,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
[ANSWERS] have that sex as their category
[{'concept': 'Q502895'}, 'P136', 'Q6581097']
SELECT DISTINCT ?p WHERE { ?p property:P136 resource:Q6581097 . ?p rdf:type ontology:Q502895 }
Francesc Xavier Avilés i Puigvert Pierre Laviron Augustus Pugin Alessandro Gregorio Capponi
Augustus Pugin, Alessandro Gregorio Capponi and Pierre Laviron have that sex as their category
Augustus Pugin Alessandro Gregorio Capponi Pierre Laviron
action filter_type
action find_reverse
entity male
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'male']
SELECT DISTINCT ?p WHERE { ?p property:genre resource:male . ?p rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q15619164
USER
Which abstract beings had atleast 12 people as the dubbing artist ?
(c(Q15619164),P725,c(Q502895))
action atleast
action find_tuple_counts
relation P725
type Q15619164
type Q502895
value 12
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?h ) WHERE { ?o property:P725 ?d . ?o rdf:type ontology:Q15619164 . ?d rdf:type ontology:Q502895 } GROUP BY ?o } . FILTER ( ?h >= 12 ) }
action atleast
action find_tuple_counts
relation voice actor
type abstract being
type common name
value 12
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?h ) WHERE { ?o property:voice_actor ?d . ?o rdf:type ontology:abstract_being . ?d rdf:type ontology:common_name } GROUP BY ?o } . FILTER ( ?h >= 12 ) }
[]
common name abstract being
Q5409355
SYSTEM
Fluttershy
Q5409355
(c(Q15619164),P725,c(Q502895))
action atleast
action find_tuple_counts
relation P725
type Q15619164
type Q502895
value 12
[ANSWER] had atleast 12 people as the dubbing artist
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?h ) WHERE { ?o property:P725 ?d . ?o rdf:type ontology:Q15619164 . ?d rdf:type ontology:Q502895 } GROUP BY ?o } . FILTER ( ?h >= 12 ) }
Fluttershy
Fluttershy had atleast 12 people as the dubbing artist
Fluttershy
action atleast
action find_tuple_counts
relation voice actor
type abstract being
type common name
value 12
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?h ) WHERE { ?o property:voice_actor ?d . ?o rdf:type ontology:abstract_being . ?d rdf:type ontology:common_name } GROUP BY ?o } . FILTER ( ?h >= 12 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P674
Q36649
USER
How many visual artss are that abstract being a character of ?
(c(Q36649),P674,Q5409355)
action count
action filter_type
action find_reverse
entity Q5409355
relation P674
type Q36649
[{'concept': 'Q36649'}, 'P674', 'Q5409355']
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x property:P674 resource:Q5409355 . ?x rdf:type ontology:Q36649 }
action count
action filter_type
action find_reverse
entity Fluttershy
relation characters
type visual arts
[{'concept': 'visual arts'}, 'characters', 'Fluttershy']
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x property:characters resource:Fluttershy . ?x rdf:type ontology:visual_arts }
[]
visual arts
SYSTEM
26
Q7728331 Q15707832 Q6731014 Q15707828 Q15707844 Q15719446 Q15719277 Q15710682 Q15708937 Q15711566 Q4655711 Q15723567 Q15708432 Q15711191 Q15719418 Q15708491 Q15720633 Q15718965 Q15733449 Q15720790 Q15718317 Q15718326 Q15724383 Q15719009 Q15720759 Q15720745
(c(Q36649),P674,Q5409355)
action count
action filter_type
action find_reverse
entity Q5409355
relation P674
type Q36649
[ANSWER]
[{'concept': 'Q36649'}, 'P674', 'Q5409355']
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x property:P674 resource:Q5409355 . ?x rdf:type ontology:Q36649 }
The Crystal Empire Applebuck Season Magical Mystery Cure The Ticket Master Griffon the Brush Off Read It and Weep Baby Cakes Lesson Zero Winter Wrap Up Three's A Crowd A Canterlot Wedding Wonderbolts Academy Friendship is Magic, part 1 Pinkie Pride The Last Roundup Friendship is Magic, part 2 Ponyville Confidential Secret of My Excess Maud Pie Daring Don't May the Best Pet Win! Sweet and Elite Filli Vanilli Hearth's Warming Eve Rarity Takes Manehattan Rainbow Falls
26
action count
action filter_type
action find_reverse
entity Fluttershy
relation characters
type visual arts
[{'concept': 'visual arts'}, 'characters', 'Fluttershy']
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x property:characters resource:Fluttershy . ?x rdf:type ontology:visual_arts }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2492 Q18221191
P19 P937
Q56061
USER
Which administrative territories were Alessandro Gregorio Capponi born in or are the locations where Konrad Adenauer worked ?
OR((Q18221191,P19,c(Q56061)), (Q2492,P937,c(Q56061)))
action filter_type
action union
action find
entity Q18221191
relation P19
action find
entity Q2492
relation P937
type Q56061
{'OR': [['Q18221191', 'P19', {'concept': 'Q56061'}], ['Q2492', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . { { resource:Q18221191 property:P19 ?q } UNION { resource:Q2492 property:P937 ?q } } }
Konrad Adenauer Alessandro Gregorio Capponi
action filter_type
action union
action find
entity Alessandro Gregorio Capponi
relation place of birth
action find
entity Konrad Adenauer
relation work location
type administrative territorial entity
{'OR': [['Alessandro Gregorio Capponi', 'place of birth', {'concept': 'administrative territorial entity'}], ['Konrad Adenauer', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . { { resource:Alessandro_Gregorio_Capponi property:place_of_birth ?q } UNION { resource:Konrad_Adenauer property:work_location ?q } } }
[]
administrative territorial entity
Q1718 Q586 Q220
SYSTEM
Düsseldorf, Bonn, Rome
Q1718 Q586 Q220
OR((Q18221191,P19,c(Q56061)), (Q2492,P937,c(Q56061)))
action filter_type
action union
action find
entity Q18221191
relation P19
action find
entity Q2492
relation P937
type Q56061
Alessandro Gregorio Capponi were born in Düsseldorf [ANSWERS] or are the locations where Konrad Adenauer worked
{'OR': [['Q18221191', 'P19', {'concept': 'Q56061'}], ['Q2492', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . { { resource:Q18221191 property:P19 ?q } UNION { resource:Q2492 property:P937 ?q } } }
Düsseldorf Bonn Rome
Alessandro Gregorio Capponi were born in Düsseldorf Düsseldorf, Bonn and Rome or are the locations where Konrad Adenauer worked
Düsseldorf Bonn Rome
action filter_type
action union
action find
entity Alessandro Gregorio Capponi
relation place of birth
action find
entity Konrad Adenauer
relation work location
type administrative territorial entity
{'OR': [['Alessandro Gregorio Capponi', 'place of birth', {'concept': 'administrative territorial entity'}], ['Konrad Adenauer', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . { { resource:Alessandro_Gregorio_Capponi property:place_of_birth ?q } UNION { resource:Konrad_Adenauer property:work_location ?q } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1708344
P937
Q502895
USER
Do Joseph Keller have those administrative territories as their work location ?
(Q1708344,P937,Q1718) (Q1708344,P937,Q586) (Q1708344,P937,Q220)
action is_in
entity prev_answer
action find
entity Q1708344
relation P937
['Q1708344', 'P937', 'Q1718'] ['Q1708344', 'P937', 'Q586'] ['Q1708344', 'P937', 'Q220']
ASK WHERE { resource:Q1708344 property:P937 ?b . VALUES ( ?b ) { ( resource:Q1718 ) ( resource:Q586 ) ( resource:Q220 ) } }
Joseph Keller
action is_in
entity prev_answer
action find
entity Joseph Keller
relation work location
['Joseph Keller', 'work location', 'Düsseldorf'] ['Joseph Keller', 'work location', 'Bonn'] ['Joseph Keller', 'work location', 'Rome']
ASK WHERE { resource:Joseph_Keller property:work_location ?b . VALUES ( ?b ) { ( resource:Düsseldorf ) ( resource:Bonn ) ( resource:Rome ) } }
[]
common name
SYSTEM
YES
(Q1708344,P937,Q1718) (Q1708344,P937,Q586) (Q1708344,P937,Q220)
action is_in
entity prev_answer
action find
entity Q1708344
relation P937
[ANSWER]
['Q1708344', 'P937', 'Q1718'] ['Q1708344', 'P937', 'Q586'] ['Q1708344', 'P937', 'Q220']
ASK WHERE { resource:Q1708344 property:P937 ?b . VALUES ( ?b ) { ( resource:Q1718 ) ( resource:Q586 ) ( resource:Q220 ) } }
Yes
action is_in
entity prev_answer
action find
entity Joseph Keller
relation work location
['Joseph Keller', 'work location', 'Düsseldorf'] ['Joseph Keller', 'work location', 'Bonn'] ['Joseph Keller', 'work location', 'Rome']
ASK WHERE { resource:Joseph_Keller property:work_location ?b . VALUES ( ?b ) { ( resource:Düsseldorf ) ( resource:Bonn ) ( resource:Rome ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q5409355 Q6381617
P725
Q502895
USER
Did the dubbing for Fluttershy Norman Green ?
(Q5409355,P725,Q6381617)
action is_in
entity Q6381617
action find
entity Q5409355
relation P725
['Q5409355', 'P725', 'Q6381617']
ASK WHERE { resource:Q5409355 property:P725 resource:Q6381617 }
Fluttershy Norman Green
action is_in
entity Norman Green
action find
entity Fluttershy
relation voice actor
['Fluttershy', 'voice actor', 'Norman Green']
ASK WHERE { resource:Fluttershy property:voice_actor resource:Norman_Green }
[]
common name
SYSTEM
NO
(Q5409355,P725,Q6381617)
action is_in
entity Q6381617
action find
entity Q5409355
relation P725
[ANSWER]
['Q5409355', 'P725', 'Q6381617']
ASK WHERE { resource:Q5409355 property:P725 resource:Q6381617 }
No
action is_in
entity Norman Green
action find
entity Fluttershy
relation voice actor
['Fluttershy', 'voice actor', 'Norman Green']
ASK WHERE { resource:Fluttershy property:voice_actor resource:Norman_Green }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q586 Q7689195
P206
Q355304
USER
Is Tawa River situated in the neighbourhood of Bonn ?
(Q586,P206,Q7689195)
action is_in
entity Q7689195
action find
entity Q586
relation P206
['Q586', 'P206', 'Q7689195']
ASK WHERE { resource:Q586 property:P206 resource:Q7689195 }
Bonn Tawa River
action is_in
entity Tawa River
action find
entity Bonn
relation located next to body of water
['Bonn', 'located next to body of water', 'Tawa River']
ASK WHERE { resource:Bonn property:located_next_to_body_of_water resource:Tawa_River }
[]
watercourse
SYSTEM
NO
(Q586,P206,Q7689195)
action is_in
entity Q7689195
action find
entity Q586
relation P206
[ANSWER]
['Q586', 'P206', 'Q7689195']
ASK WHERE { resource:Q586 property:P206 resource:Q7689195 }
No
action is_in
entity Tawa River
action find
entity Bonn
relation located next to body of water
['Bonn', 'located next to body of water', 'Tawa River']
ASK WHERE { resource:Bonn property:located_next_to_body_of_water resource:Tawa_River }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26695474 Q586
P1376 P1001
Q1048835
USER
Which political territories have Bonn as their capital or apply to jurisdiction of mayor of Santa Coloma ?
OR((Q586,P1376,c(Q1048835)), (Q26695474,P1001,c(Q1048835)))
action filter_type
action union
action find
entity Q586
relation P1376
action find
entity Q26695474
relation P1001
type Q1048835
{'OR': [['Q586', 'P1376', {'concept': 'Q1048835'}], ['Q26695474', 'P1001', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q586 property:P1376 ?m } UNION { resource:Q26695474 property:P1001 ?m } } . ?m rdf:type ontology:Q1048835 }
mayor of Santa Coloma Bonn
action filter_type
action union
action find
entity Bonn
relation capital of
action find
entity mayor of Santa Coloma
relation applies to jurisdiction
type political territorial entity
{'OR': [['Bonn', 'capital of', {'concept': 'political territorial entity'}], ['mayor of Santa Coloma', 'applies to jurisdiction', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Bonn property:capital_of ?m } UNION { resource:mayor_of_Santa_Coloma property:applies_to_jurisdiction ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1766212 Q183
SYSTEM
Santa Coloma, La Rioja, Germany
Q1766212 Q183
OR((Q586,P1376,c(Q1048835)), (Q26695474,P1001,c(Q1048835)))
action filter_type
action union
action find
entity Q586
relation P1376
action find
entity Q26695474
relation P1001
type Q1048835
[ANSWERS] have Bonn as their capital or apply to jurisdiction of mayor of Santa Coloma
{'OR': [['Q586', 'P1376', {'concept': 'Q1048835'}], ['Q26695474', 'P1001', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q586 property:P1376 ?m } UNION { resource:Q26695474 property:P1001 ?m } } . ?m rdf:type ontology:Q1048835 }
Santa Coloma, La Rioja Germany
Santa Coloma, La Rioja and Germany have Bonn as their capital or apply to jurisdiction of mayor of Santa Coloma
Santa Coloma, La Rioja Germany
action filter_type
action union
action find
entity Bonn
relation capital of
action find
entity mayor of Santa Coloma
relation applies to jurisdiction
type political territorial entity
{'OR': [['Bonn', 'capital of', {'concept': 'political territorial entity'}], ['mayor of Santa Coloma', 'applies to jurisdiction', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Bonn property:capital_of ?m } UNION { resource:mayor_of_Santa_Coloma property:applies_to_jurisdiction ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q183
P47
Q15617994
USER
Which administrative territories are next to the border of that political territory ?
(c(Q15617994),P47,Q183)
action filter_type
action find
entity Q183
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q183']
SELECT DISTINCT ?l WHERE { resource:Q183 property:P47 ?l . ?l rdf:type ontology:Q15617994 }
Germany
action filter_type
action find
entity Germany
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Germany']
SELECT DISTINCT ?l WHERE { resource:Germany property:shares_border_with ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1766212
SYSTEM
Did you mean Santa Coloma, La Rioja ?
Q1766212 Q183
(c(Q15617994),P47,Q1766212) (c(Q15617994),P47,Q183)
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q1766212'] [{'concept': 'Q15617994'}, 'P47', 'Q183']
SELECT DISTINCT ?l WHERE { resource:Q183 property:P47 ?l . ?l rdf:type ontology:Q15617994 }
Santa Coloma, La Rioja Germany
Did you mean Santa Coloma, La Rioja ?
Santa Coloma, La Rioja
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Santa Coloma, La Rioja'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Germany']
SELECT DISTINCT ?l WHERE { resource:Germany property:shares_border_with ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Germany. Could you tell me the answer for that?
(c(Q15617994),P47,Q183)
Q183
[{'concept': 'Q15617994'}, 'P47', 'Q183']
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Germany']
[]
Q142 Q55 Q36
SYSTEM
France, Netherlands, Poland
Q142 Q213 Q55 Q29999 Q32 Q31 Q36 Q39
(c(Q15617994),P47,Q183)
action filter_type
action find
entity Q183
relation P47
type Q15617994
[ANSWERS] are next to the border of that political territory
[{'concept': 'Q15617994'}, 'P47', 'Q183']
SELECT DISTINCT ?l WHERE { resource:Q183 property:P47 ?l . ?l rdf:type ontology:Q15617994 }
France Czech Republic Netherlands Kingdom of the Netherlands Luxembourg Belgium Poland Switzerland
France, Netherlands and Poland are next to the border of that political territory
France Netherlands Poland
action filter_type
action find
entity Germany
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Germany']
SELECT DISTINCT ?l WHERE { resource:Germany property:shares_border_with ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P530
Q15617994
USER
Which administrative territories have diplomatic relations with Germany ?
(Q183,P530,c(Q15617994))
action filter_type
action find
entity Q183
relation P530
type Q15617994
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q183 property:P530 ?e . ?e rdf:type ontology:Q15617994 }
Germany
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Germany property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q786 Q833 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q1019 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q265 Q347 Q227 Q225 Q224 Q222 Q96 Q229 Q228 Q17 Q902 Q1036 Q1037 Q974 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 Q1008 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q811 Q1016 Q1011 Q945 Q869 Q953
(Q183,P530,c(Q15617994))
action filter_type
action find
entity Q183
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with Germany
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q183 property:P530 ?e . ?e rdf:type ontology:Q15617994 }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominican Republic 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 Madagascar Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Uzbekistan Liechtenstein Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Andorra Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo 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 Côte d'Ivoire Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Nicaragua Libya Cape Verde Togo Thailand Zambia
Italy, Brazil and United States of America have diplomatic relations with Germany
Italy Brazil United States of America
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Germany property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q183
Q1048835
USER
And which political territory?
(Q183,P530,c(Q1048835))
action filter_type
action find
entity Q183
relation P530
type Q1048835
['Q183', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q183 property:P530 ?m . ?m rdf:type ontology:Q1048835 }
Germany
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Germany property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q35 Q16
SYSTEM
Australia, Denmark, Canada
Q664 Q408 Q40 Q35 Q16 Q1000
(Q183,P530,c(Q1048835))
action filter_type
action find
entity Q183
relation P530
type Q1048835
[ANSWERS]
['Q183', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q183 property:P530 ?m . ?m rdf:type ontology:Q1048835 }
New Zealand Australia Austria Denmark Canada Gabon
Australia Denmark Canada
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Germany property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1000
P530
Q1048835 Q1048835
USER
How many political territories have diplomatic relationships with greater number of political territories than Gabon ?
(c(Q1048835),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q1000
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?c ) WHERE { ?z rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q1048835 . ?z property:P530 ?v } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { resource:Q1000 property:P530 ?h . ?h rdf:type ontology:Q1048835 } } . FILTER ( ?c > ?l ) }
Gabon
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?c ) WHERE { ?z rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:political_territorial_entity . ?z property:diplomatic_relation ?v } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { resource:Gabon property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity } } . FILTER ( ?c > ?l ) }
[]
political territorial entity political territorial entity
SYSTEM
6
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q1000
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?c ) WHERE { ?z rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q1048835 . ?z property:P530 ?v } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { resource:Q1000 property:P530 ?h . ?h rdf:type ontology:Q1048835 } } . FILTER ( ?c > ?l ) }
Austria Germany Australia Denmark Canada New Zealand
6
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?c ) WHERE { ?z rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:political_territorial_entity . ?z property:diplomatic_relation ?v } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { resource:Gabon property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity } } . FILTER ( ?c > ?l ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q664
P530
Q1048835 Q1048835
USER
And what about New Zealand?
(c(Q1048835),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { ?b rdf:type ontology:Q1048835 . resource:Q664 property:P530 ?b } } . FILTER ( ?f > ?x ) . { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?f ) WHERE { ?u rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 . ?u property:P530 ?e } GROUP BY ?u } }
New Zealand
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { ?b rdf:type ontology:political_territorial_entity . resource:New_Zealand property:diplomatic_relation ?b } } . FILTER ( ?f > ?x ) . { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?f ) WHERE { ?u rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity . ?u property:diplomatic_relation ?e } GROUP BY ?u } }
[]
political territorial entity political territorial entity
SYSTEM
3
Q183 Q408 Q16
(c(Q1048835),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { ?b rdf:type ontology:Q1048835 . resource:Q664 property:P530 ?b } } . FILTER ( ?f > ?x ) . { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?f ) WHERE { ?u rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 . ?u property:P530 ?e } GROUP BY ?u } }
Germany Australia Canada
3
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { ?b rdf:type ontology:political_territorial_entity . resource:New_Zealand property:diplomatic_relation ?b } } . FILTER ( ?f > ?x ) . { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?f ) WHERE { ?u rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity . ?u property:diplomatic_relation ?e } GROUP BY ?u } }
[]