Simple Question (Direct)
Simple Question
Q7357431
P641
Q349
USER
What was the sport that Rodrigo Teixeira was a part of ?
(Q7357431,P641,c(Q349))
action filter_type
action find
entity Q7357431
relation P641
type Q349
['Q7357431', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q349 . resource:Q7357431 property:P641 ?g }
Rodrigo Teixeira
action filter_type
action find
entity Rodrigo Teixeira
relation sport
type sport
['Rodrigo Teixeira', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sport . resource:Rodrigo_Teixeira property:sport ?g }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q7357431,P641,c(Q349))
action filter_type
action find
entity Q7357431
relation P641
type Q349
The sport that Rodrigo Teixeira was a part of was [ANSWER]
['Q7357431', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q349 . resource:Q7357431 property:P641 ?g }
association football
The sport that Rodrigo Teixeira was a part of was association football
association football
action filter_type
action find
entity Rodrigo Teixeira
relation sport
type sport
['Rodrigo Teixeira', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sport . resource:Rodrigo_Teixeira property:sport ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7357431
P27
Q15617994
USER
Which administrative territories are that person a civilian of ?
(Q2736,P27,c(Q15617994))
action filter_type
action find
entity Q7357431
relation P27
type Q15617994
['Q2736', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q7357431 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Rodrigo Teixeira
action filter_type
action find
entity Rodrigo Teixeira
relation country of citizenship
type designation for an administrative territorial entity
['association football', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Rodrigo_Teixeira property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q717
SYSTEM
Brazil, Venezuela
Q155 Q717
(Q2736,P27,c(Q15617994))
action filter_type
action find
entity Q7357431
relation P27
type Q15617994
[ANSWERS] are that person a civilian of
['Q2736', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q7357431 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Brazil Venezuela
Brazil and Venezuela are that person a civilian of
Brazil Venezuela
action filter_type
action find
entity Rodrigo Teixeira
relation country of citizenship
type designation for an administrative territorial entity
['association football', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Rodrigo_Teixeira property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q155 Q717
P194
Q1752346
USER
What assemblies are the legislative bodies for those administrative territories ?
(Q155,P194,c(Q1752346)) (Q717,P194,c(Q1752346))
action filter_type
action find
entity prev_answer
relation P194
type Q1752346
['Q155', 'P194', {'concept': 'Q1752346'}] ['Q717', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?o WHERE { ?r property:P194 ?o . ?o rdf:type ontology:Q1752346 . VALUES ( ?r ) { ( resource:Q155 ) ( resource:Q717 ) } }
Brazil Venezuela
action filter_type
action find
entity prev_answer
relation legislative body
type assembly
['Brazil', 'legislative body', {'concept': 'assembly'}] ['Venezuela', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?o WHERE { ?r property:legislative_body ?o . ?o rdf:type ontology:assembly . VALUES ( ?r ) { ( resource:Brazil ) ( resource:Venezuela ) } }
[]
assembly
Q949699 Q1585014
SYSTEM
National Congress of Brasil, National Assembly of Venezuela
Q949699 Q1585014
(Q155,P194,c(Q1752346)) (Q717,P194,c(Q1752346))
action filter_type
action find
entity prev_answer
relation P194
type Q1752346
The legislative bodies for those administrative territories are the [ANSWERS]
['Q155', 'P194', {'concept': 'Q1752346'}] ['Q717', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?o WHERE { ?r property:P194 ?o . ?o rdf:type ontology:Q1752346 . VALUES ( ?r ) { ( resource:Q155 ) ( resource:Q717 ) } }
National Congress of Brasil National Assembly of Venezuela
The legislative bodies for those administrative territories are the National Congress of Brasil and National Assembly of Venezuela
National Congress of Brasil National Assembly of Venezuela
action filter_type
action find
entity prev_answer
relation legislative body
type assembly
['Brazil', 'legislative body', {'concept': 'assembly'}] ['Venezuela', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?o WHERE { ?r property:legislative_body ?o . ?o rdf:type ontology:assembly . VALUES ( ?r ) { ( resource:Brazil ) ( resource:Venezuela ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q949699 Q1585014
P17
Q15617994
USER
Which administrative territories are National Congress of Brasil and National Assembly of Venezuela situated in ?
(Q949699,P17,c(Q15617994)) (Q1585014,P17,c(Q15617994))
action union
action filter_type
action find
entity Q949699
relation P17
type Q15617994
action filter_type
action find
entity Q1585014
relation P17
type Q15617994
['Q949699', 'P17', {'concept': 'Q15617994'}] ['Q1585014', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { VALUES ( ?w ) { ( resource:Q949699 ) ( resource:Q1585014 ) } . ?w property:P17 ?q }
National Congress of Brasil National Assembly of Venezuela
action union
action filter_type
action find
entity National Congress of Brasil
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity National Assembly of Venezuela
relation country
type designation for an administrative territorial entity
['National Congress of Brasil', 'country', {'concept': 'designation for an administrative territorial entity'}] ['National Assembly of Venezuela', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { VALUES ( ?w ) { ( resource:National_Congress_of_Brasil ) ( resource:National_Assembly_of_Venezuela ) } . ?w property:country ?q }
[]
designation for an administrative territorial entity
Q155 Q717
SYSTEM
Brazil, Venezuela
Q155 Q717
(Q949699,P17,c(Q15617994)) (Q1585014,P17,c(Q15617994))
action union
action filter_type
action find
entity Q949699
relation P17
type Q15617994
action filter_type
action find
entity Q1585014
relation P17
type Q15617994
National Congress of Brasil and National Assembly of Venezuela are situated in [ANSWERS]
['Q949699', 'P17', {'concept': 'Q15617994'}] ['Q1585014', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { VALUES ( ?w ) { ( resource:Q949699 ) ( resource:Q1585014 ) } . ?w property:P17 ?q }
Brazil Venezuela
National Congress of Brasil and National Assembly of Venezuela are situated in Brazil and Venezuela
Brazil Venezuela
action union
action filter_type
action find
entity National Congress of Brasil
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity National Assembly of Venezuela
relation country
type designation for an administrative territorial entity
['National Congress of Brasil', 'country', {'concept': 'designation for an administrative territorial entity'}] ['National Assembly of Venezuela', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { VALUES ( ?w ) { ( resource:National_Congress_of_Brasil ) ( resource:National_Assembly_of_Venezuela ) } . ?w property:country ?q }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q155 Q717
P17
Q15617994
USER
Which administrative territories do those ones belong to ?
(Q155,P17,c(Q15617994)) (Q717,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q155', 'P17', {'concept': 'Q15617994'}] ['Q717', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?s property:P17 ?l . VALUES ( ?s ) { ( resource:Q155 ) ( resource:Q717 ) } . ?l rdf:type ontology:Q15617994 }
Brazil Venezuela
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Brazil', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Venezuela', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?s property:country ?l . VALUES ( ?s ) { ( resource:Brazil ) ( resource:Venezuela ) } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q717
SYSTEM
Brazil, Venezuela
Q155 Q717
(Q155,P17,c(Q15617994)) (Q717,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
Those ones belong to [ANSWERS]
['Q155', 'P17', {'concept': 'Q15617994'}] ['Q717', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?s property:P17 ?l . VALUES ( ?s ) { ( resource:Q155 ) ( resource:Q717 ) } . ?l rdf:type ontology:Q15617994 }
Brazil Venezuela
Those ones belong to Brazil and Venezuela
Brazil Venezuela
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Brazil', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Venezuela', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?s property:country ?l . VALUES ( ?s ) { ( resource:Brazil ) ( resource:Venezuela ) } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q717
P1376
Q515
USER
Which city is the county seat of that administrative territory ?
(c(Q515),P1376,Q717)
action filter_type
action find_reverse
entity Q717
relation P1376
type Q515
[{'concept': 'Q515'}, 'P1376', 'Q717']
SELECT DISTINCT ?y WHERE { ?y property:P1376 resource:Q717 . ?y rdf:type ontology:Q515 }
Venezuela
action filter_type
action find_reverse
entity Venezuela
relation capital of
type city
[{'concept': 'city'}, 'capital of', 'Venezuela']
SELECT DISTINCT ?y WHERE { ?y property:capital_of resource:Venezuela . ?y rdf:type ontology:city }
[]
city
Clarification for simple ques.
Q717
SYSTEM
Did you mean Venezuela ?
Q155 Q717
(c(Q515),P1376,Q155) (c(Q515),P1376,Q717)
[ANSWER]
[{'concept': 'Q515'}, 'P1376', 'Q155'] [{'concept': 'Q515'}, 'P1376', 'Q717']
SELECT DISTINCT ?y WHERE { ?y property:P1376 resource:Q717 . ?y rdf:type ontology:Q515 }
Brazil Venezuela
Did you mean Venezuela ?
Venezuela
[{'concept': 'city'}, 'capital of', 'Brazil'] [{'concept': 'city'}, 'capital of', 'Venezuela']
SELECT DISTINCT ?y WHERE { ?y property:capital_of resource:Venezuela . ?y rdf:type ontology:city }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q515),P1376,Q717)
[{'concept': 'Q515'}, 'P1376', 'Q717']
[{'concept': 'city'}, 'capital of', 'Venezuela']
[]
Q1533
SYSTEM
Caracas
Q1533
(c(Q515),P1376,Q717)
action filter_type
action find_reverse
entity Q717
relation P1376
type Q515
[ANSWER] is the county seat of that administrative territory
[{'concept': 'Q515'}, 'P1376', 'Q717']
SELECT DISTINCT ?y WHERE { ?y property:P1376 resource:Q717 . ?y rdf:type ontology:Q515 }
Caracas
Caracas is the county seat of that administrative territory
Caracas
action filter_type
action find_reverse
entity Venezuela
relation capital of
type city
[{'concept': 'city'}, 'capital of', 'Venezuela']
SELECT DISTINCT ?y WHERE { ?y property:capital_of resource:Venezuela . ?y rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1533
P36
Q15617994
USER
Which administrative territory contains that city as its capital ?
(c(Q15617994),P36,Q1533)
action filter_type
action find_reverse
entity Q1533
relation P36
type Q15617994
[{'concept': 'Q15617994'}, 'P36', 'Q1533']
SELECT DISTINCT ?e WHERE { ?e property:P36 resource:Q1533 . ?e rdf:type ontology:Q15617994 }
Caracas
action filter_type
action find_reverse
entity Caracas
relation capital
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Caracas']
SELECT DISTINCT ?e WHERE { ?e property:capital resource:Caracas . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q717
SYSTEM
Venezuela
Q717
(c(Q15617994),P36,Q1533)
action filter_type
action find_reverse
entity Q1533
relation P36
type Q15617994
[ANSWER] contains that city as its capital
[{'concept': 'Q15617994'}, 'P36', 'Q1533']
SELECT DISTINCT ?e WHERE { ?e property:P36 resource:Q1533 . ?e rdf:type ontology:Q15617994 }
Venezuela
Venezuela contains that city as its capital
Venezuela
action filter_type
action find_reverse
entity Caracas
relation capital
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Caracas']
SELECT DISTINCT ?e WHERE { ?e property:capital resource:Caracas . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P17
Q15617994 Q34442 Q13220204
USER
Which administrative territories are max number of roads and administrative country subdivisions a part of ?
(c(Q34442)|c(Q13220204),P17,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q34442
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q13220204
[[{'concept': 'Q34442'}, {'concept': 'Q13220204'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?y WHERE { ?v rdf:type ?m . VALUES ( ?m ) { ( ontology:Q34442 ) ( ontology:Q13220204 ) } } GROUP BY ?y } . FILTER ( ?p = ?f ) . { SELECT DISTINCT ( MAX ( ?n ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) ?r WHERE { { ?r rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q34442 . ?h property:P17 ?r } UNION { ?r rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q13220204 . ?h property:P17 ?r } } GROUP BY ?r } } }
action argmax
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type road
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type second-level administrative country subdivision
[[{'concept': 'road'}, {'concept': 'second-level administrative country subdivision'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?y WHERE { ?v rdf:type ?m . VALUES ( ?m ) { ( ontology:road ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?y } . FILTER ( ?p = ?f ) . { SELECT DISTINCT ( MAX ( ?n ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) ?r WHERE { { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:road . ?h property:country ?r } UNION { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:second-level_administrative_country_subdivision . ?h property:country ?r } } GROUP BY ?r } } }
[]
designation for an administrative territorial entity road second-level administrative country subdivision
Q55
SYSTEM
Netherlands
Q55
(c(Q34442)|c(Q13220204),P17,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q34442
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q13220204
[ANSWER] is max number of roads and administrative country subdivisions a part of
[[{'concept': 'Q34442'}, {'concept': 'Q13220204'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?y WHERE { ?v rdf:type ?m . VALUES ( ?m ) { ( ontology:Q34442 ) ( ontology:Q13220204 ) } } GROUP BY ?y } . FILTER ( ?p = ?f ) . { SELECT DISTINCT ( MAX ( ?n ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) ?r WHERE { { ?r rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q34442 . ?h property:P17 ?r } UNION { ?r rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q13220204 . ?h property:P17 ?r } } GROUP BY ?r } } }
Netherlands
Netherlands is max number of roads and administrative country subdivisions a part of
Netherlands
action argmax
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type road
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type second-level administrative country subdivision
[[{'concept': 'road'}, {'concept': 'second-level administrative country subdivision'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?y WHERE { ?v rdf:type ?m . VALUES ( ?m ) { ( ontology:road ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?y } . FILTER ( ?p = ?f ) . { SELECT DISTINCT ( MAX ( ?n ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) ?r WHERE { { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:road . ?h property:country ?r } UNION { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:second-level_administrative_country_subdivision . ?h property:country ?r } } GROUP BY ?r } } }
[]