Simple Question (Direct)
Simple Question
Q6541501
P106
Q12737077
USER
What is the job of Liberto dos Santos ?
(Q6541501,P106,c(Q12737077))
action filter_type
action find
entity Q6541501
relation P106
type Q12737077
['Q6541501', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q6541501 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
Liberto dos Santos
action filter_type
action find
entity Liberto dos Santos
relation occupation
type occupation
['Liberto dos Santos', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Liberto_dos_Santos property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q6541501,P106,c(Q12737077))
action filter_type
action find
entity Q6541501
relation P106
type Q12737077
The job of Liberto dos Santos is an [ANSWER]
['Q6541501', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q6541501 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
association football player
The job of Liberto dos Santos is an association football player
association football player
action filter_type
action find
entity Liberto dos Santos
relation occupation
type occupation
['Liberto dos Santos', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Liberto_dos_Santos property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6541501
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q937857,P27,c(Q15617994))
action filter_type
action find
entity Q6541501
relation P27
type Q15617994
['Q937857', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q6541501 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Liberto dos Santos
action filter_type
action find
entity Liberto dos Santos
relation country of citizenship
type designation for an administrative territorial entity
['association football player', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Liberto_dos_Santos property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q45
SYSTEM
Portugal
Q45
(Q937857,P27,c(Q15617994))
action filter_type
action find
entity Q6541501
relation P27
type Q15617994
That person belongs to the [ANSWER]
['Q937857', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q6541501 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Portugal
That person belongs to the Portugal
Portugal
action filter_type
action find
entity Liberto dos Santos
relation country of citizenship
type designation for an administrative territorial entity
['association football player', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Liberto_dos_Santos property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q45
P36
Q56061
USER
Which administrative territory is called the capital of that administrative territory ?
(Q45,P36,c(Q56061))
action filter_type
action find
entity Q45
relation P36
type Q56061
['Q45', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q45 property:P36 ?h . ?h rdf:type ontology:Q56061 }
Portugal
action filter_type
action find
entity Portugal
relation capital
type administrative territorial entity
['Portugal', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Portugal property:capital ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q597
SYSTEM
Lisbon
Q597
(Q45,P36,c(Q56061))
action filter_type
action find
entity Q45
relation P36
type Q56061
[ANSWER] is called the capital of that administrative territory
['Q45', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q45 property:P36 ?h . ?h rdf:type ontology:Q56061 }
Lisbon
Lisbon is called the capital of that administrative territory
Lisbon
action filter_type
action find
entity Portugal
relation capital
type administrative territorial entity
['Portugal', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Portugal property:capital ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P1444
Q18608583 Q22348500
USER
How many recurring sporting events and cycling race classes have that administrative territory as their destination point ?
(c(Q18608583),P1444,Q597) (c(Q22348500),P1444,Q597) (c(Q18608583),P1444,Q597) (c(Q22348500),P1444,Q597)
action count
action union
action filter_type
action find_reverse
entity Q597
relation P1444
type Q18608583
action filter_type
action find_reverse
entity Q597
relation P1444
type Q22348500
[{'concept': 'Q18608583'}, 'P1444', 'Q597'] [{'concept': 'Q22348500'}, 'P1444', 'Q597'] [{'concept': 'Q18608583'}, 'P1444', 'Q597'] [{'concept': 'Q22348500'}, 'P1444', 'Q597']
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { { ?r property:P1444 resource:Q597 . ?r rdf:type ontology:Q18608583 } UNION { ?r property:P1444 resource:Q597 . ?r rdf:type ontology:Q22348500 } }
action count
action union
action filter_type
action find_reverse
entity Lisbon
relation destination point
type recurring sporting event
action filter_type
action find_reverse
entity Lisbon
relation destination point
type cycling race class defined by the International Cycling Union
[{'concept': 'recurring sporting event'}, 'destination point', 'Lisbon'] [{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', 'Lisbon'] [{'concept': 'recurring sporting event'}, 'destination point', 'Lisbon'] [{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', 'Lisbon']
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { { ?r property:destination_point resource:Lisbon . ?r rdf:type ontology:recurring_sporting_event } UNION { ?r property:destination_point resource:Lisbon . ?r rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union } }
[]
recurring sporting event cycling race class defined by the International Cycling Union
SYSTEM
1 recurring sporting events and 1 cycling race classes
Q20740354 Q18471444
(c(Q18608583),P1444,Q597) (c(Q22348500),P1444,Q597) (c(Q18608583),P1444,Q597) (c(Q22348500),P1444,Q597)
action count
action union
action filter_type
action find_reverse
entity Q597
relation P1444
type Q18608583
action filter_type
action find_reverse
entity Q597
relation P1444
type Q22348500
[ANSWER]
[{'concept': 'Q18608583'}, 'P1444', 'Q597'] [{'concept': 'Q22348500'}, 'P1444', 'Q597'] [{'concept': 'Q18608583'}, 'P1444', 'Q597'] [{'concept': 'Q22348500'}, 'P1444', 'Q597']
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { { ?r property:P1444 resource:Q597 . ?r rdf:type ontology:Q18608583 } UNION { ?r property:P1444 resource:Q597 . ?r rdf:type ontology:Q22348500 } }
2016 Volta a Portugal 2015 Volta a Portugal
1 recurring sporting events and 1 cycling race classes
action count
action union
action filter_type
action find_reverse
entity Lisbon
relation destination point
type recurring sporting event
action filter_type
action find_reverse
entity Lisbon
relation destination point
type cycling race class defined by the International Cycling Union
[{'concept': 'recurring sporting event'}, 'destination point', 'Lisbon'] [{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', 'Lisbon'] [{'concept': 'recurring sporting event'}, 'destination point', 'Lisbon'] [{'concept': 'cycling race class defined by the International Cycling Union'}, 'destination point', 'Lisbon']
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { { ?r property:destination_point resource:Lisbon . ?r rdf:type ontology:recurring_sporting_event } UNION { ?r property:destination_point resource:Lisbon . ?r rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P37
Q34770 Q5962346 Q15617994
USER
How many administrative territories are around 1 languages and classification schemes associated to as the official language ?
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action count
action approx
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
value 1
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) ?l WHERE { { ?l property:P37 ?j . ?l rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q34770 } UNION { ?j rdf:type ontology:Q5962346 . ?l rdf:type ontology:Q15617994 . ?l property:P37 ?j } } GROUP BY ?l } . FILTER ( ?i = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) ?l WHERE { { ?l property:official_language ?j . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:language } UNION { ?j rdf:type ontology:classification_scheme . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l property:official_language ?j } } GROUP BY ?l } . FILTER ( ?i = 1 ) }
[]
language classification scheme designation for an administrative territorial entity
SYSTEM
84
Q804 Q399 Q800 Q709 Q668 Q414 Q1948 Q783 Q784 Q493428 Q712 Q710 Q717 Q2003 Q258 Q1979 Q792 Q954 Q953 Q958 Q986 Q241 Q242 Q244 Q1974 Q811 Q53381 Q101526 Q924 Q34 Q928 Q39 Q38 Q739 Q733 Q734 Q55 Q1013 Q795587 Q693658 Q145 Q238 Q20 Q1044 Q1042 Q27 Q1049 Q1020 Q843 Q736 Q786 Q1904 Q96 Q1050 Q1989 Q686312 Q1036 Q1037 Q1033 Q1030 Q963 Q298 Q695 Q114 Q117 Q754 Q213 Q1005 Q833 Q1951 Q1009 Q243220 Q683 Q34020 Q686 Q760 Q77 Q774 Q1014 Q678 Q233 Q672 Q1952 Q2023
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action count
action approx
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) ?l WHERE { { ?l property:P37 ?j . ?l rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q34770 } UNION { ?j rdf:type ontology:Q5962346 . ?l rdf:type ontology:Q15617994 . ?l property:P37 ?j } } GROUP BY ?l } . FILTER ( ?i = 1 ) }
Panama Armenia Costa Rica Marshall Islands India Argentina Manitoba Honduras Dominica Mistretta Fiji Kiribati Venezuela Newfoundland and Labrador South Africa Prince Edward Island El Salvador Zimbabwe Zambia South Sudan Eritrea Cuba Belize Barbados British Columbia Nicaragua Tolmezzo Rovetta Tanzania Sweden Philippines Switzerland Italy Colombia Paraguay Guyana Netherlands Lesotho Escuintla Izabal Department United Kingdom San Marino Norway Sierra Leone Seychelles Ireland Sudan Malawi Pakistan Ecuador Dominican Republic Ontario Mexico Swaziland Saskatchewan Duchy of Amalfi Uganda Rwanda Nigeria Namibia Botswana Chile Palau Kenya Ghana Trinidad and Tobago Czech Republic Gambia Malaysia Alberta Cameroon Rocca di Cave Samoa Niue Vanuatu Saint Lucia Uruguay Guatemala Liberia Tonga Malta Tuvalu Nova Scotia Nunavut
84
action count
action approx
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) ?l WHERE { { ?l property:official_language ?j . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:language } UNION { ?j rdf:type ontology:classification_scheme . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l property:official_language ?j } } GROUP BY ?l } . FILTER ( ?i = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q597
P1376
Q3032141
USER
Which district of Portugal has Lisbon has its first city ?
(Q597,P1376,c(Q3032141))
action filter_type
action find
entity Q597
relation P1376
type Q3032141
['Q597', 'P1376', {'concept': 'Q3032141'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q3032141 . resource:Q597 property:P1376 ?e }
Lisbon
action filter_type
action find
entity Lisbon
relation capital of
type district of Portugal
['Lisbon', 'capital of', {'concept': 'district of Portugal'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:district_of_Portugal . resource:Lisbon property:capital_of ?e }
[]
district of Portugal
Q207199
SYSTEM
Lisbon District
Q207199
(Q597,P1376,c(Q3032141))
action filter_type
action find
entity Q597
relation P1376
type Q3032141
[ANSWER] has Lisbon has its first city
['Q597', 'P1376', {'concept': 'Q3032141'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q3032141 . resource:Q597 property:P1376 ?e }
Lisbon District
Lisbon District has Lisbon has its first city
Lisbon District
action filter_type
action find
entity Lisbon
relation capital of
type district of Portugal
['Lisbon', 'capital of', {'concept': 'district of Portugal'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:district_of_Portugal . resource:Lisbon property:capital_of ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q597
P163
Q17335294
USER
Which coat of arms is associated with Lisbon ?
(Q597,P163,c(Q17335294))
action filter_type
action find
entity Q597
relation P163
type Q17335294
['Q597', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?i WHERE { resource:Q597 property:P163 ?i . ?i rdf:type ontology:Q17335294 }
Lisbon
action filter_type
action find
entity Lisbon
relation flag
type flag or coat of arms
['Lisbon', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?i WHERE { resource:Lisbon property:flag ?i . ?i rdf:type ontology:flag_or_coat_of_arms }
[]
flag or coat of arms
Q5456771
SYSTEM
Flag of Lisbon
Q5456771
(Q597,P163,c(Q17335294))
action filter_type
action find
entity Q597
relation P163
type Q17335294
Lisbon [ANSWER] is associated with Lisbon
['Q597', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?i WHERE { resource:Q597 property:P163 ?i . ?i rdf:type ontology:Q17335294 }
Flag of Lisbon
Lisbon Flag of Lisbon is associated with Lisbon
Flag of Lisbon
action filter_type
action find
entity Lisbon
relation flag
type flag or coat of arms
['Lisbon', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?i WHERE { resource:Lisbon property:flag ?i . ?i rdf:type ontology:flag_or_coat_of_arms }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q597
P17
Q7275
USER
Which state does that administrative territory belong to ?
(Q5456771,P17,c(Q7275))
action filter_type
action find
entity Q597
relation P17
type Q7275
['Q5456771', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?l WHERE { resource:Q597 property:P17 ?l . ?l rdf:type ontology:Q7275 }
Lisbon
action filter_type
action find
entity Lisbon
relation country
type state
['Flag of Lisbon', 'country', {'concept': 'state'}]
SELECT DISTINCT ?l WHERE { resource:Lisbon property:country ?l . ?l rdf:type ontology:state }
[]
state
Q45670
SYSTEM
Kingdom of Portugal
Q45670
(Q5456771,P17,c(Q7275))
action filter_type
action find
entity Q597
relation P17
type Q7275
That administrative territory belongs to [ANSWER]
['Q5456771', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?l WHERE { resource:Q597 property:P17 ?l . ?l rdf:type ontology:Q7275 }
Kingdom of Portugal
That administrative territory belongs to Kingdom of Portugal
Kingdom of Portugal
action filter_type
action find
entity Lisbon
relation country
type state
['Flag of Lisbon', 'country', {'concept': 'state'}]
SELECT DISTINCT ?l WHERE { resource:Lisbon property:country ?l . ?l rdf:type ontology:state }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q20668400 Q597
P190 P20
Q56061
USER
Which administrative territories are twin cities of Lisbon or are the places of death of Willy Lasut ?
OR((Q597,P190,c(Q56061)), (Q20668400,P20,c(Q56061)))
action filter_type
action union
action find
entity Q597
relation P190
action find
entity Q20668400
relation P20
type Q56061
{'OR': [['Q597', 'P190', {'concept': 'Q56061'}], ['Q20668400', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q20668400 property:P20 ?y } UNION { resource:Q597 property:P190 ?y } } . ?y rdf:type ontology:Q56061 }
Willy Lasut Lisbon
action filter_type
action union
action find
entity Lisbon
relation sister city
action find
entity Willy Lasut
relation place of death
type administrative territorial entity
{'OR': [['Lisbon', 'sister city', {'concept': 'administrative territorial entity'}], ['Willy Lasut', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Willy_Lasut property:place_of_death ?y } UNION { resource:Lisbon property:sister_city ?y } } . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q61089 Q3897 Q3856 Q3932 Q1002807 Q1524 Q9310 Q117040 Q3630 Q3551
SYSTEM
Some of them are Malacca City, Luanda, Nicosia, São Tomé, Cacheu, Athens, Dili, Santiago de Cuba, Jakarta, Rabat
Q641 Q117040 Q3551 Q3889 Q61089 Q3856 Q34820 Q1524 Q42800 Q1781 Q1489 Q1002807 Q3739 Q3932 Q3897 Q3630 Q9310 Q174 Q8678 Q2807 Q1335 Q5776 Q62
OR((Q597,P190,c(Q56061)), (Q20668400,P20,c(Q56061)))
action filter_type
action union
action find
entity Q597
relation P190
action find
entity Q20668400
relation P20
type Q56061
[ANSWERS] are twin cities of Lisbon or are the places of death of Willy Lasut
{'OR': [['Q597', 'P190', {'concept': 'Q56061'}], ['Q20668400', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q20668400 property:P20 ?y } UNION { resource:Q597 property:P190 ?y } } . ?y rdf:type ontology:Q56061 }
Venice Santiago de Cuba Rabat Maputo Malacca City Nicosia Santo Domingo Athens Belo Horizonte Budapest Mexico City Cacheu Bissau São Tomé Luanda Jakarta Dili São Paulo Rio de Janeiro Madrid Montevideo Bethlehem San Francisco
Malacca City, Luanda, Nicosia, São Tomé, Cacheu, Athens, Dili, Santiago de Cuba, Jakarta and Rabat are twin cities of Lisbon or are the places of death of Willy Lasut
Malacca City Luanda Nicosia São Tomé Cacheu Athens Dili Santiago de Cuba Jakarta Rabat
action filter_type
action union
action find
entity Lisbon
relation sister city
action find
entity Willy Lasut
relation place of death
type administrative territorial entity
{'OR': [['Lisbon', 'sister city', {'concept': 'administrative territorial entity'}], ['Willy Lasut', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Willy_Lasut property:place_of_death ?y } UNION { resource:Lisbon property:sister_city ?y } } . ?y rdf:type ontology:administrative_territorial_entity }
[]