Simple Question (Direct)
Simple Question
Q5078735
P166
Q618779
USER
What was awarded to Charles Hammann ?
(Q5078735,P166,c(Q618779))
action filter_type
action find
entity Q5078735
relation P166
type Q618779
['Q5078735', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q618779 . resource:Q5078735 property:P166 ?d }
Charles Hammann
action filter_type
action find
entity Charles Hammann
relation award received
type award
['Charles Hammann', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:award . resource:Charles_Hammann property:award_received ?d }
[]
award
Q203535
SYSTEM
Medal of Honor
Q203535
(Q5078735,P166,c(Q618779))
action filter_type
action find
entity Q5078735
relation P166
type Q618779
[ANSWER] was awarded to Charles Hammann
['Q5078735', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q618779 . resource:Q5078735 property:P166 ?d }
Medal of Honor
Medal of Honor was awarded to Charles Hammann
Medal of Honor
action filter_type
action find
entity Charles Hammann
relation award received
type award
['Charles Hammann', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:award . resource:Charles_Hammann property:award_received ?d }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5078735
P27
Q15617994
USER
Which administrative territory does Charles Hammann belong to ?
(Q5078735,P27,c(Q15617994))
action filter_type
action find
entity Q5078735
relation P27
type Q15617994
['Q5078735', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q5078735 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Charles Hammann
action filter_type
action find
entity Charles Hammann
relation country of citizenship
type designation for an administrative territorial entity
['Charles Hammann', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Charles_Hammann property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q5078735,P27,c(Q15617994))
action filter_type
action find
entity Q5078735
relation P27
type Q15617994
Charles Hammann belongs to [ANSWER]
['Q5078735', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q5078735 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
United States of America
Charles Hammann belongs to United States of America
United States of America
action filter_type
action find
entity Charles Hammann
relation country of citizenship
type designation for an administrative territorial entity
['Charles Hammann', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Charles_Hammann property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q18642447
Q15617994
USER
And what about Aubin Minaku?
(Q18642447,P27,c(Q15617994))
action filter_type
action find
entity Q18642447
relation P27
type Q15617994
['Q18642447', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q18642447 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Aubin Minaku
action filter_type
action find
entity Aubin Minaku
relation country of citizenship
type designation for an administrative territorial entity
['Aubin Minaku', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Aubin_Minaku property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q974
SYSTEM
Democratic Republic of the Congo
Q974
(Q18642447,P27,c(Q15617994))
action filter_type
action find
entity Q18642447
relation P27
type Q15617994
[ANSWER]
['Q18642447', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q18642447 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Democratic Republic of the Congo
Democratic Republic of the Congo
action filter_type
action find
entity Aubin Minaku
relation country of citizenship
type designation for an administrative territorial entity
['Aubin Minaku', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Aubin_Minaku property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q974
P1001
Q1292279
USER
Which political borders have jurisdiction over that administrative territory ?
(c(Q1292279),P1001,Q974)
action filter_type
action find_reverse
entity Q974
relation P1001
type Q1292279
[{'concept': 'Q1292279'}, 'P1001', 'Q974']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1292279 . ?j property:P1001 resource:Q974 }
Democratic Republic of the Congo
action filter_type
action find_reverse
entity Democratic Republic of the Congo
relation applies to jurisdiction
type political border
[{'concept': 'political border'}, 'applies to jurisdiction', 'Democratic Republic of the Congo']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:political_border . ?j property:applies_to_jurisdiction resource:Democratic_Republic_of_the_Congo }
[]
political border
Q3088981 Q3088704 Q3088978
SYSTEM
Democratic Republic of the Congo–South Sudan border, Angola–Democratic Republic of the Congo border, Democratic Republic of the Congo–Zambia border
Q3088981 Q3088704 Q3088978 Q3088979 Q3088974 Q3088975 Q26833475 Q3088977 Q3088800 Q3089023
(c(Q1292279),P1001,Q974)
action filter_type
action find_reverse
entity Q974
relation P1001
type Q1292279
[ANSWERS] have jurisdiction over that administrative territory
[{'concept': 'Q1292279'}, 'P1001', 'Q974']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1292279 . ?j property:P1001 resource:Q974 }
Democratic Republic of the Congo–South Sudan border Angola–Democratic Republic of the Congo border Democratic Republic of the Congo–Zambia border Democratic Republic of the Congo–Rwanda border Central African Republic–Democratic Republic of the Congo border Democratic Republic of the Congo–Republic of the Congo border Democratic Republic of the Congo–Sudan border Democratic Republic of the Congo–Tanzania border Democratic Republic of the Congo–Uganda border Burundi–Democratic Republic of the Congo border
Democratic Republic of the Congo–South Sudan border, Angola–Democratic Republic of the Congo border and Democratic Republic of the Congo–Zambia border have jurisdiction over that administrative territory
Democratic Republic of the Congo–South Sudan border Angola–Democratic Republic of the Congo border Democratic Republic of the Congo–Zambia border
action filter_type
action find_reverse
entity Democratic Republic of the Congo
relation applies to jurisdiction
type political border
[{'concept': 'political border'}, 'applies to jurisdiction', 'Democratic Republic of the Congo']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:political_border . ?j property:applies_to_jurisdiction resource:Democratic_Republic_of_the_Congo }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q974
P463
Q484652 Q43229
USER
How many international organizations or organizations were Democratic Republic of the Congo a member of ?
(Q974,P463,c(Q484652)) (Q974,P463,c(Q43229))
action count
action union
action filter_type
action find
entity Q974
relation P463
type Q484652
action filter_type
action find
entity Q974
relation P463
type Q43229
['Q974', 'P463', {'concept': 'Q484652'}] ['Q974', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { resource:Q974 property:P463 ?i . ?i rdf:type ontology:Q43229 } UNION { resource:Q974 property:P463 ?i . ?i rdf:type ontology:Q484652 } }
Democratic Republic of the Congo
action count
action union
action filter_type
action find
entity Democratic Republic of the Congo
relation member of
type international organization
action filter_type
action find
entity Democratic Republic of the Congo
relation member of
type organization
['Democratic Republic of the Congo', 'member of', {'concept': 'international organization'}] ['Democratic Republic of the Congo', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { resource:Democratic_Republic_of_the_Congo property:member_of ?i . ?i rdf:type ontology:organization } UNION { resource:Democratic_Republic_of_the_Congo property:member_of ?i . ?i rdf:type ontology:international_organization } }
[]
international organization organization
SYSTEM
9
Q340195 Q191384 Q656801 Q899770 Q1065 Q294278 Q7825 Q827525 Q1043527
(Q974,P463,c(Q484652)) (Q974,P463,c(Q43229))
action count
action union
action filter_type
action find
entity Q974
relation P463
type Q484652
action filter_type
action find
entity Q974
relation P463
type Q43229
[ANSWER]
['Q974', 'P463', {'concept': 'Q484652'}] ['Q974', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { resource:Q974 property:P463 ?i . ?i rdf:type ontology:Q43229 } UNION { resource:Q974 property:P463 ?i . ?i rdf:type ontology:Q484652 } }
African Development Bank International Bank for Reconstruction and Development International Finance Corporation International Centre for Settlement of Investment Disputes United Nations African, Caribbean and Pacific Group of States World Trade Organization International Development Association Multilateral Investment Guarantee Agency
9
action count
action union
action filter_type
action find
entity Democratic Republic of the Congo
relation member of
type international organization
action filter_type
action find
entity Democratic Republic of the Congo
relation member of
type organization
['Democratic Republic of the Congo', 'member of', {'concept': 'international organization'}] ['Democratic Republic of the Congo', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { resource:Democratic_Republic_of_the_Congo property:member_of ?i . ?i rdf:type ontology:organization } UNION { resource:Democratic_Republic_of_the_Congo property:member_of ?i . ?i rdf:type ontology:international_organization } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q102807
P47
Q15617994
USER
How many administrative territories share border with Lugagnano Val d'Arda ?
(c(Q15617994),P47,Q102807)
action count
action filter_type
action find_reverse
entity Q102807
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q102807']
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x property:P47 resource:Q102807 . ?x rdf:type ontology:Q15617994 }
Lugagnano Val d'Arda
action count
action filter_type
action find_reverse
entity Lugagnano Val d'Arda
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', "Lugagnano Val d'Arda"]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x property:shares_border_with resource:Lugagnano_Val_d'Arda . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
5
Q102784 Q102816 Q102997 Q102621 Q102631
(c(Q15617994),P47,Q102807)
action count
action filter_type
action find_reverse
entity Q102807
relation P47
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q102807']
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x property:P47 resource:Q102807 . ?x rdf:type ontology:Q15617994 }
Gropparello Morfasso Vernasca Carpaneto Piacentino Castell'Arquato
5
action count
action filter_type
action find_reverse
entity Lugagnano Val d'Arda
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', "Lugagnano Val d'Arda"]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x property:shares_border_with resource:Lugagnano_Val_d'Arda . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q20372
P47
Q15617994
USER
And what about Priocca?
(c(Q15617994),P47,Q20372)
action count
action filter_type
action find_reverse
entity Q20372
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q20372']
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { ?x property:P47 resource:Q20372 . ?x rdf:type ontology:Q15617994 }
Priocca
action count
action filter_type
action find_reverse
entity Priocca
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Priocca']
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { ?x property:shares_border_with resource:Priocca . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
5
Q19911 Q17859 Q20125 Q20096 Q18394
(c(Q15617994),P47,Q20372)
action count
action filter_type
action find_reverse
entity Q20372
relation P47
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q20372']
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { ?x property:P47 resource:Q20372 . ?x rdf:type ontology:Q15617994 }
Castellinaldo San Damiano d'Asti Magliano Alfieri Govone Canale
5
action count
action filter_type
action find_reverse
entity Priocca
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Priocca']
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { ?x property:shares_border_with resource:Priocca . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q769
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic associations with around the same number of administrative territories as Grenada ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:Q769 property:P530 ?c . ?c rdf:type ontology:Q1048835 } } . FILTER ( ?m = ?i ) . { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?m ) WHERE { ?o property:P530 ?q . ?o rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?o } }
Grenada
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:Grenada property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity } } . FILTER ( ?m = ?i ) . { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?m ) WHERE { ?o property:diplomatic_relation ?q . ?o rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:Q769 property:P530 ?c . ?c rdf:type ontology:Q1048835 } } . FILTER ( ?m = ?i ) . { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?m ) WHERE { ?o property:P530 ?q . ?o rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?o } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:Grenada property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity } } . FILTER ( ?m = ?i ) . { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?m ) WHERE { ?o property:diplomatic_relation ?q . ?o rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q35
P530
Q15617994 Q1048835
USER
And also tell me about Denmark?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?d ) WHERE { ?v rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 . ?v property:P530 ?z } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { ?y rdf:type ontology:Q1048835 . resource:Q35 property:P530 ?y } } . FILTER ( ?d = ?s ) }
Denmark
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?d ) WHERE { ?v rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v property:diplomatic_relation ?z } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { ?y rdf:type ontology:political_territorial_entity . resource:Denmark property:diplomatic_relation ?y } } . FILTER ( ?d = ?s ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?d ) WHERE { ?v rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 . ?v property:P530 ?z } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { ?y rdf:type ontology:Q1048835 . resource:Q35 property:P530 ?y } } . FILTER ( ?d = ?s ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?d ) WHERE { ?v rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v property:diplomatic_relation ?z } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { ?y rdf:type ontology:political_territorial_entity . resource:Denmark property:diplomatic_relation ?y } } . FILTER ( ?d = ?s ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P417
Q1509831
USER
What is the name of the patron saint of Brazil ?
(Q155,P417,c(Q1509831))
action filter_type
action find
entity Q155
relation P417
type Q1509831
['Q155', 'P417', {'concept': 'Q1509831'}]
SELECT DISTINCT ?q WHERE { resource:Q155 property:P417 ?q . ?q rdf:type ontology:Q1509831 }
Brazil
action filter_type
action find
entity Brazil
relation patron saint
type titles of Mary
['Brazil', 'patron saint', {'concept': 'titles of Mary'}]
SELECT DISTINCT ?q WHERE { resource:Brazil property:patron_saint ?q . ?q rdf:type ontology:titles_of_Mary }
[]
titles of Mary
Q2469225
SYSTEM
Our Lady of Aparecida
Q2469225
(Q155,P417,c(Q1509831))
action filter_type
action find
entity Q155
relation P417
type Q1509831
The name of the patron saint of Brazil is [ANSWER]
['Q155', 'P417', {'concept': 'Q1509831'}]
SELECT DISTINCT ?q WHERE { resource:Q155 property:P417 ?q . ?q rdf:type ontology:Q1509831 }
Our Lady of Aparecida
The name of the patron saint of Brazil is Our Lady of Aparecida
Our Lady of Aparecida
action filter_type
action find
entity Brazil
relation patron saint
type titles of Mary
['Brazil', 'patron saint', {'concept': 'titles of Mary'}]
SELECT DISTINCT ?q WHERE { resource:Brazil property:patron_saint ?q . ?q rdf:type ontology:titles_of_Mary }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q25175
Q1509831
USER
And what about Postua?
(Q25175,P417,c(Q1509831))
action filter_type
action find
entity Q25175
relation P417
type Q1509831
['Q25175', 'P417', {'concept': 'Q1509831'}]
SELECT DISTINCT ?u WHERE { resource:Q25175 property:P417 ?u . ?u rdf:type ontology:Q1509831 }
Postua
action filter_type
action find
entity Postua
relation patron saint
type titles of Mary
['Postua', 'patron saint', {'concept': 'titles of Mary'}]
SELECT DISTINCT ?u WHERE { resource:Postua property:patron_saint ?u . ?u rdf:type ontology:titles_of_Mary }
[]
titles of Mary
Q1196075
SYSTEM
Our Lady of Sorrows
Q1196075
(Q25175,P417,c(Q1509831))
action filter_type
action find
entity Q25175
relation P417
type Q1509831
[ANSWER]
['Q25175', 'P417', {'concept': 'Q1509831'}]
SELECT DISTINCT ?u WHERE { resource:Q25175 property:P417 ?u . ?u rdf:type ontology:Q1509831 }
Our Lady of Sorrows
Our Lady of Sorrows
action filter_type
action find
entity Postua
relation patron saint
type titles of Mary
['Postua', 'patron saint', {'concept': 'titles of Mary'}]
SELECT DISTINCT ?u WHERE { resource:Postua property:patron_saint ?u . ?u rdf:type ontology:titles_of_Mary }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q25175
P17
Q15617994
USER
Which administrative territory is that one situated in ?
(Q1196075,P17,c(Q15617994))
action filter_type
action find
entity Q25175
relation P17
type Q15617994
['Q1196075', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q25175 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Postua
action filter_type
action find
entity Postua
relation country
type designation for an administrative territorial entity
['Our Lady of Sorrows', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Postua property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q1196075,P17,c(Q15617994))
action filter_type
action find
entity Q25175
relation P17
type Q15617994
That one is situated in [ANSWER]
['Q1196075', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q25175 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Italy
That one is situated in Italy
Italy
action filter_type
action find
entity Postua
relation country
type designation for an administrative territorial entity
['Our Lady of Sorrows', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Postua property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1142623 Q3088704
P27 P17
Q15617994
USER
Which administrative territories do Angola–Democratic Republic of the Congo border belong to or are Csaba Markus an inhabitant of ?
OR((Q3088704,P17,c(Q15617994)), (Q1142623,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3088704
relation P17
action find
entity Q1142623
relation P27
type Q15617994
{'OR': [['Q3088704', 'P17', {'concept': 'Q15617994'}], ['Q1142623', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q3088704 property:P17 ?u } UNION { resource:Q1142623 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
Csaba Markus Angola–Democratic Republic of the Congo border
action filter_type
action union
action find
entity Angola–Democratic Republic of the Congo border
relation country
action find
entity Csaba Markus
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Angola–Democratic Republic of the Congo border', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Csaba Markus', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Angola–Democratic_Republic_of_the_Congo_border property:country ?u } UNION { resource:Csaba_Markus property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28 Q974 Q916
SYSTEM
Hungary, Democratic Republic of the Congo, Angola
Q28 Q974 Q916
OR((Q3088704,P17,c(Q15617994)), (Q1142623,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3088704
relation P17
action find
entity Q1142623
relation P27
type Q15617994
[ANSWERS] do Angola–Democratic Republic of the Congo border belong to or are Csaba Markus an inhabitant of
{'OR': [['Q3088704', 'P17', {'concept': 'Q15617994'}], ['Q1142623', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q3088704 property:P17 ?u } UNION { resource:Q1142623 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
Hungary Democratic Republic of the Congo Angola
Hungary, Democratic Republic of the Congo and Angola do Angola–Democratic Republic of the Congo border belong to or are Csaba Markus an inhabitant of
Hungary Democratic Republic of the Congo Angola
action filter_type
action union
action find
entity Angola–Democratic Republic of the Congo border
relation country
action find
entity Csaba Markus
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Angola–Democratic Republic of the Congo border', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Csaba Markus', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Angola–Democratic_Republic_of_the_Congo_border property:country ?u } UNION { resource:Csaba_Markus property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q974
P30
Q2221906
USER
Which geographic location is that administrative territory located in ?
(Q974,P30,c(Q2221906))
action filter_type
action find
entity Q974
relation P30
type Q2221906
['Q974', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?c WHERE { resource:Q974 property:P30 ?c . ?c rdf:type ontology:Q2221906 }
Democratic Republic of the Congo
action filter_type
action find
entity Democratic Republic of the Congo
relation continent
type geographic location
['Democratic Republic of the Congo', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?c WHERE { resource:Democratic_Republic_of_the_Congo property:continent ?c . ?c rdf:type ontology:geographic_location }
[]
geographic location
Clarification for simple ques.
Q916
SYSTEM
Did you mean Angola ?
Q28 Q974 Q916
(Q28,P30,c(Q2221906)) (Q974,P30,c(Q2221906)) (Q916,P30,c(Q2221906))
[ANSWER]
['Q28', 'P30', {'concept': 'Q2221906'}] ['Q974', 'P30', {'concept': 'Q2221906'}] ['Q916', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?c WHERE { resource:Q974 property:P30 ?c . ?c rdf:type ontology:Q2221906 }
Hungary Democratic Republic of the Congo Angola
Did you mean Angola ?
Angola
['Hungary', 'continent', {'concept': 'geographic location'}] ['Democratic Republic of the Congo', 'continent', {'concept': 'geographic location'}] ['Angola', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?c WHERE { resource:Democratic_Republic_of_the_Congo property:continent ?c . ?c rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
USER
No, I meant Democratic Republic of the Congo. Could you tell me the answer for that?
(Q974,P30,c(Q2221906))
Q974
['Q974', 'P30', {'concept': 'Q2221906'}]
['Democratic Republic of the Congo', 'continent', {'concept': 'geographic location'}]
[]
Q15
SYSTEM
Africa
Q15
(Q974,P30,c(Q2221906))
action filter_type
action find
entity Q974
relation P30
type Q2221906
That administrative territory is located in [ANSWER]
['Q974', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?c WHERE { resource:Q974 property:P30 ?c . ?c rdf:type ontology:Q2221906 }
Africa
That administrative territory is located in Africa
Africa
action filter_type
action find
entity Democratic Republic of the Congo
relation continent
type geographic location
['Democratic Republic of the Congo', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?c WHERE { resource:Democratic_Republic_of_the_Congo property:continent ?c . ?c rdf:type ontology:geographic_location }
[]