Simple Question (Direct)
Simple Question
Q719640
P69
Q3918
USER
What is the university where Lauge Koch was educated ?
(Q719640,P69,c(Q3918))
action filter_type
action find
entity Q719640
relation P69
type Q3918
['Q719640', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?n WHERE { resource:Q719640 property:P69 ?n . ?n rdf:type ontology:Q3918 }
Lauge Koch
action filter_type
action find
entity Lauge Koch
relation educated at
type university
['Lauge Koch', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?n WHERE { resource:Lauge_Koch property:educated_at ?n . ?n rdf:type ontology:university }
[]
university
Q186285
SYSTEM
University of Copenhagen
Q186285
(Q719640,P69,c(Q3918))
action filter_type
action find
entity Q719640
relation P69
type Q3918
The university Lauge Koch was educated is the [ANSWER]
['Q719640', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?n WHERE { resource:Q719640 property:P69 ?n . ?n rdf:type ontology:Q3918 }
University of Copenhagen
The university Lauge Koch was educated is the University of Copenhagen
University of Copenhagen
action filter_type
action find
entity Lauge Koch
relation educated at
type university
['Lauge Koch', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?n WHERE { resource:Lauge_Koch property:educated_at ?n . ?n rdf:type ontology:university }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q719640
P27
Q1048835
USER
Which political territory is the country of citizenship of Lauge Koch ?
(Q719640,P27,c(Q1048835))
action filter_type
action find
entity Q719640
relation P27
type Q1048835
['Q719640', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { resource:Q719640 property:P27 ?d . ?d rdf:type ontology:Q1048835 }
Lauge Koch
action filter_type
action find
entity Lauge Koch
relation country of citizenship
type political territorial entity
['Lauge Koch', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Lauge_Koch property:country_of_citizenship ?d . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q35
SYSTEM
Denmark
Q35
(Q719640,P27,c(Q1048835))
action filter_type
action find
entity Q719640
relation P27
type Q1048835
[ANSWER] is the country of citizenship of Lauge Koch
['Q719640', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { resource:Q719640 property:P27 ?d . ?d rdf:type ontology:Q1048835 }
Denmark
Denmark is the country of citizenship of Lauge Koch
Denmark
action filter_type
action find
entity Lauge Koch
relation country of citizenship
type political territorial entity
['Lauge Koch', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Lauge_Koch property:country_of_citizenship ?d . ?d rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2062362
Q1048835
USER
And how about Paul Schwarz?
(Q2062362,P27,c(Q1048835))
action filter_type
action find
entity Q2062362
relation P27
type Q1048835
['Q2062362', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { resource:Q2062362 property:P27 ?e . ?e rdf:type ontology:Q1048835 }
Paul Schwarz
action filter_type
action find
entity Paul Schwarz
relation country of citizenship
type political territorial entity
['Paul Schwarz', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Paul_Schwarz property:country_of_citizenship ?e . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q2062362,P27,c(Q1048835))
action filter_type
action find
entity Q2062362
relation P27
type Q1048835
[ANSWER]
['Q2062362', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { resource:Q2062362 property:P27 ?e . ?e rdf:type ontology:Q1048835 }
Germany
Germany
action filter_type
action find
entity Paul Schwarz
relation country of citizenship
type political territorial entity
['Paul Schwarz', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Paul_Schwarz property:country_of_citizenship ?e . ?e rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q34
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with less number of political territories than Sweden ?
(c(Q1048835),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q34
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?u ) WHERE { ?c rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 . ?t property:P530 ?c } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r rdf:type ontology:Q1048835 . resource:Q34 property:P530 ?r } } . FILTER ( ?u < ?l ) }
Sweden
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Sweden
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?u ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity . ?t property:diplomatic_relation ?c } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r rdf:type ontology:political_territorial_entity . resource:Sweden property:diplomatic_relation ?r } } . FILTER ( ?u < ?l ) }
[]
designation for an administrative territorial entity political territorial entity
Q230 Q55 Q148
SYSTEM
Georgia, Netherlands, People's Republic of China
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q55 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q710 Q717 Q837 Q399 Q398 Q657 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q32 Q31 Q924 Q928 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q736 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 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q858 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q1048835),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q34
relation P530
type Q1048835
[ANSWERS] have diplomatic relationships with less number of political territories than Sweden
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?u ) WHERE { ?c rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 . ?t property:P530 ?c } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r rdf:type ontology:Q1048835 . resource:Q34 property:P530 ?r } } . FILTER ( ?u < ?l ) }
Federated States of Micronesia Panama Costa Rica Yemen Peru India Argentina Netherlands Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Kiribati Venezuela Nepal Armenia Bahrain Chad Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan 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 Lesotho Montenegro Georgia Kazakhstan Malta San Marino Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Ecuador 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 Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Syria Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
Georgia, Netherlands and People's Republic of China have diplomatic relationships with less number of political territories than Sweden
Georgia Netherlands People's Republic of China
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Sweden
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?u ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity . ?t property:diplomatic_relation ?c } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r rdf:type ontology:political_territorial_entity . resource:Sweden property:diplomatic_relation ?r } } . FILTER ( ?u < ?l ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q241
P530
Q15617994 Q1048835
USER
And also tell me about Cuba?
(c(Q1048835),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q241
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?a ) WHERE { ?i property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1048835 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { resource:Q241 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } . FILTER ( ?a < ?b ) }
Cuba
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Cuba
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?a ) WHERE { ?i property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { resource:Cuba property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?a < ?b ) }
[]
designation for an administrative territorial entity political territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q784 Q710 Q399 Q398 Q790 Q1013 Q236 Q842 Q970 Q874 Q858
(c(Q1048835),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q241
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?a ) WHERE { ?i property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1048835 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { resource:Q241 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } . FILTER ( ?a < ?b ) }
Yemen Dominica Kiribati Armenia Bahrain Haiti Lesotho Montenegro Oman Comoros Turkmenistan Syria
Yemen Syria Oman
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Cuba
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?a ) WHERE { ?i property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { resource:Cuba property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?a < ?b ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q5141690 Q230
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relations with Georgia and are Cojutepeque F.C. situated in ?
AND((Q230,P530,c(Q15617994)), (Q5141690,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q230
relation P530
action find
entity Q5141690
relation P17
type Q15617994
{'AND': [['Q230', 'P530', {'concept': 'Q15617994'}], ['Q5141690', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { resource:Q230 property:P530 ?e . resource:Q5141690 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
Cojutepeque F.C. Georgia
action filter_type
action intersection
action find
entity Georgia
relation diplomatic relation
action find
entity Cojutepeque F.C.
relation country
type designation for an administrative territorial entity
{'AND': [['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Cojutepeque F.C.', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { resource:Georgia property:diplomatic_relation ?e . resource:Cojutepeque_F.C. property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q792
SYSTEM
El Salvador
Q792
AND((Q230,P530,c(Q15617994)), (Q5141690,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q230
relation P530
action find
entity Q5141690
relation P17
type Q15617994
[ANSWER] have diplomatic relations with Georgia and are Cojutepeque F.C. situated in
{'AND': [['Q230', 'P530', {'concept': 'Q15617994'}], ['Q5141690', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { resource:Q230 property:P530 ?e . resource:Q5141690 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
El Salvador
El Salvador have diplomatic relations with Georgia and are Cojutepeque F.C. situated in
El Salvador
action filter_type
action intersection
action find
entity Georgia
relation diplomatic relation
action find
entity Cojutepeque F.C.
relation country
type designation for an administrative territorial entity
{'AND': [['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Cojutepeque F.C.', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { resource:Georgia property:diplomatic_relation ?e . resource:Cojutepeque_F.C. property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q792
P163
Q14660
USER
Which flag is associated with that administrative territory ?
(Q792,P163,c(Q14660))
action filter_type
action find
entity Q792
relation P163
type Q14660
['Q792', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?j WHERE { resource:Q792 property:P163 ?j . ?j rdf:type ontology:Q14660 }
El Salvador
action filter_type
action find
entity El Salvador
relation flag
type flag
['El Salvador', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?j WHERE { resource:El_Salvador property:flag ?j . ?j rdf:type ontology:flag }
[]
flag
Q173554
SYSTEM
flag of El Salvador
Q173554
(Q792,P163,c(Q14660))
action filter_type
action find
entity Q792
relation P163
type Q14660
Salvador [ANSWER] is associated with that administrative territory
['Q792', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?j WHERE { resource:Q792 property:P163 ?j . ?j rdf:type ontology:Q14660 }
flag of El Salvador
Salvador flag of El Salvador is associated with that administrative territory
flag of El Salvador
action filter_type
action find
entity El Salvador
relation flag
type flag
['El Salvador', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?j WHERE { resource:El_Salvador property:flag ?j . ?j rdf:type ontology:flag }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q214
Q14660
USER
And how about Slovakia?
(Q214,P163,c(Q14660))
action filter_type
action find
entity Q214
relation P163
type Q14660
['Q214', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q14660 . resource:Q214 property:P163 ?e }
Slovakia
action filter_type
action find
entity Slovakia
relation flag
type flag
['Slovakia', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:flag . resource:Slovakia property:flag ?e }
[]
flag
Q160861
SYSTEM
Flag of Slovakia
Q160861
(Q214,P163,c(Q14660))
action filter_type
action find
entity Q214
relation P163
type Q14660
[ANSWER]
['Q214', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q14660 . resource:Q214 property:P163 ?e }
Flag of Slovakia
Flag of Slovakia
action filter_type
action find
entity Slovakia
relation flag
type flag
['Slovakia', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:flag . resource:Slovakia property:flag ?e }
[]