Simple Question (Direct)
Simple Question
Q19300573
P19
Q56061
USER
Which administrative territory is the birthplace of Josep Masvidal ?
(Q19300573,P19,c(Q56061))
action filter_type
action find
entity Q19300573
relation P19
type Q56061
['Q19300573', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q19300573 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Josep Masvidal
action filter_type
action find
entity Josep Masvidal
relation place of birth
type administrative territorial entity
['Josep Masvidal', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Josep_Masvidal property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1492
SYSTEM
Barcelona
Q1492
(Q19300573,P19,c(Q56061))
action filter_type
action find
entity Q19300573
relation P19
type Q56061
[ANSWER] is the birthplace of Josep Masvidal
['Q19300573', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q19300573 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Barcelona
Barcelona is the birthplace of Josep Masvidal
Barcelona
action filter_type
action find
entity Josep Masvidal
relation place of birth
type administrative territorial entity
['Josep Masvidal', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Josep_Masvidal property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19300573
P1412
Q34770
USER
Which language is Josep Masvidal capable of writing ?
(Q19300573,P1412,c(Q34770))
action filter_type
action find
entity Q19300573
relation P1412
type Q34770
['Q19300573', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { resource:Q19300573 property:P1412 ?g . ?g rdf:type ontology:Q34770 }
Josep Masvidal
action filter_type
action find
entity Josep Masvidal
relation languages spoken, written or signed
type language
['Josep Masvidal', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { resource:Josep_Masvidal property:languages_spoken,_written_or_signed ?g . ?g rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q19300573,P1412,c(Q34770))
action filter_type
action find
entity Q19300573
relation P1412
type Q34770
[ANSWER] is Josep Masvidal capable of writing
['Q19300573', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { resource:Q19300573 property:P1412 ?g . ?g rdf:type ontology:Q34770 }
Spanish
Spanish is Josep Masvidal capable of writing
Spanish
action filter_type
action find
entity Josep Masvidal
relation languages spoken, written or signed
type language
['Josep Masvidal', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { resource:Josep_Masvidal property:languages_spoken,_written_or_signed ?g . ?g rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1492
P36
Q15617994
USER
Which administrative territories contain Barcelona as their capital ?
(c(Q15617994),P36,Q1492)
action filter_type
action find_reverse
entity Q1492
relation P36
type Q15617994
[{'concept': 'Q15617994'}, 'P36', 'Q1492']
SELECT DISTINCT ?o WHERE { ?o property:P36 resource:Q1492 . ?o rdf:type ontology:Q15617994 }
Barcelona
action filter_type
action find_reverse
entity Barcelona
relation capital
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Barcelona']
SELECT DISTINCT ?o WHERE { ?o property:capital resource:Barcelona . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q2921370 Q1090684
SYSTEM
Bouches-de-l'Èbre-Montserrat, Montserrat
Q2921370 Q1090684
(c(Q15617994),P36,Q1492)
action filter_type
action find_reverse
entity Q1492
relation P36
type Q15617994
[ANSWERS] contain Barcelona as their capital
[{'concept': 'Q15617994'}, 'P36', 'Q1492']
SELECT DISTINCT ?o WHERE { ?o property:P36 resource:Q1492 . ?o rdf:type ontology:Q15617994 }
Bouches-de-l'Èbre-Montserrat Montserrat
Bouches-de-l'Èbre-Montserrat and Montserrat contain Barcelona as their capital
Bouches-de-l'Èbre-Montserrat Montserrat
action filter_type
action find_reverse
entity Barcelona
relation capital
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Barcelona']
SELECT DISTINCT ?o WHERE { ?o property:capital resource:Barcelona . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2921370 Q1090684
P1376
Q56061
USER
Which administrative territories are the county seat for Bouches-de-l'Èbre-Montserrat and Montserrat ?
(c(Q56061),P1376,Q2921370) (c(Q56061),P1376,Q1090684)
action union
action filter_type
action find_reverse
entity Q2921370
relation P1376
type Q56061
action filter_type
action find_reverse
entity Q1090684
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q2921370'] [{'concept': 'Q56061'}, 'P1376', 'Q1090684']
SELECT DISTINCT ?a WHERE { VALUES ( ?w ) { ( resource:Q2921370 ) ( resource:Q1090684 ) } . ?a property:P1376 ?w }
Bouches-de-l'Èbre-Montserrat Montserrat
action union
action filter_type
action find_reverse
entity Bouches-de-l'Èbre-Montserrat
relation capital of
type administrative territorial entity
action filter_type
action find_reverse
entity Montserrat
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', "Bouches-de-l'Èbre-Montserrat"] [{'concept': 'administrative territorial entity'}, 'capital of', 'Montserrat']
SELECT DISTINCT ?a WHERE { VALUES ( ?w ) { ( resource:Bouches-de-l'Èbre-Montserrat ) ( resource:Montserrat ) } . ?a property:capital_of ?w }
[]
administrative territorial entity
Q1492
SYSTEM
Barcelona
Q1492
(c(Q56061),P1376,Q2921370) (c(Q56061),P1376,Q1090684)
action union
action filter_type
action find_reverse
entity Q2921370
relation P1376
type Q56061
action filter_type
action find_reverse
entity Q1090684
relation P1376
type Q56061
[ANSWER] is the county seat for Bouches-de-l'Èbre-Montserrat and Montserrat
[{'concept': 'Q56061'}, 'P1376', 'Q2921370'] [{'concept': 'Q56061'}, 'P1376', 'Q1090684']
SELECT DISTINCT ?a WHERE { VALUES ( ?w ) { ( resource:Q2921370 ) ( resource:Q1090684 ) } . ?a property:P1376 ?w }
Barcelona
Barcelona is the county seat for Bouches-de-l'Èbre-Montserrat and Montserrat
Barcelona
action union
action filter_type
action find_reverse
entity Bouches-de-l'Èbre-Montserrat
relation capital of
type administrative territorial entity
action filter_type
action find_reverse
entity Montserrat
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', "Bouches-de-l'Èbre-Montserrat"] [{'concept': 'administrative territorial entity'}, 'capital of', 'Montserrat']
SELECT DISTINCT ?a WHERE { VALUES ( ?w ) { ( resource:Bouches-de-l'Èbre-Montserrat ) ( resource:Montserrat ) } . ?a property:capital_of ?w }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2921370
P138
Q14524493
USER
Which terrain is Bouches-de-l'Èbre-Montserrat named after ?
(Q1492,P138,c(Q14524493))
action filter_type
action find
entity Q2921370
relation P138
type Q14524493
['Q1492', 'P138', {'concept': 'Q14524493'}]
SELECT DISTINCT ?p WHERE { resource:Q2921370 property:P138 ?p . ?p rdf:type ontology:Q14524493 }
Bouches-de-l'Èbre-Montserrat
action filter_type
action find
entity Bouches-de-l'Èbre-Montserrat
relation named after
type terrain
['Barcelona', 'named after', {'concept': 'terrain'}]
SELECT DISTINCT ?p WHERE { resource:Bouches-de-l'Èbre-Montserrat property:named_after ?p . ?p rdf:type ontology:terrain }
[]
terrain
Q732115
SYSTEM
Montserrat
Q732115
(Q1492,P138,c(Q14524493))
action filter_type
action find
entity Q2921370
relation P138
type Q14524493
[ANSWER] is Bouches-de-l'Èbre-[ANSWER] named after
['Q1492', 'P138', {'concept': 'Q14524493'}]
SELECT DISTINCT ?p WHERE { resource:Q2921370 property:P138 ?p . ?p rdf:type ontology:Q14524493 }
Montserrat
Montserrat is Bouches-de-l'Èbre-Montserrat named after
Montserrat
action filter_type
action find
entity Bouches-de-l'Èbre-Montserrat
relation named after
type terrain
['Barcelona', 'named after', {'concept': 'terrain'}]
SELECT DISTINCT ?p WHERE { resource:Bouches-de-l'Èbre-Montserrat property:named_after ?p . ?p rdf:type ontology:terrain }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P361
Q14524493 Q44539 Q83620
USER
How many terrains are greater number of temples and thoroughfares a component of than that terrain ?
(c(Q44539)|c(Q83620),P361,c(Q14524493))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q14524493
type Q44539
action find_reverse_tuple_counts
relation P361
type Q14524493
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q732115
relation P361
type Q44539
type Q83620
[[{'concept': 'Q44539'}, {'concept': 'Q83620'}], 'P361', {'concept': 'Q14524493'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) ?f WHERE { VALUES ( ?b ) { ( ontology:Q44539 ) ( ontology:Q83620 ) } . ?s rdf:type ?b } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:P361 resource:Q732115 . { VALUES ( ?u ) { ( ontology:Q83620 ) ( ontology:Q44539 ) } . ?c rdf:type ?u } } } . FILTER ( ?e > ?l ) }
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type terrain
type temple
action find_reverse_tuple_counts
relation part of
type terrain
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Montserrat
relation part of
type temple
type thoroughfare
[[{'concept': 'temple'}, {'concept': 'thoroughfare'}], 'part of', {'concept': 'terrain'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) ?f WHERE { VALUES ( ?b ) { ( ontology:temple ) ( ontology:thoroughfare ) } . ?s rdf:type ?b } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:part_of resource:Montserrat . { VALUES ( ?u ) { ( ontology:thoroughfare ) ( ontology:temple ) } . ?c rdf:type ?u } } } . FILTER ( ?e > ?l ) }
[]
terrain temple thoroughfare
SYSTEM
2
Q120314 Q1274
(c(Q44539)|c(Q83620),P361,c(Q14524493))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q14524493
type Q44539
action find_reverse_tuple_counts
relation P361
type Q14524493
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q732115
relation P361
type Q44539
type Q83620
[ANSWER]
[[{'concept': 'Q44539'}, {'concept': 'Q83620'}], 'P361', {'concept': 'Q14524493'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) ?f WHERE { VALUES ( ?b ) { ( ontology:Q44539 ) ( ontology:Q83620 ) } . ?s rdf:type ?b } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:P361 resource:Q732115 . { VALUES ( ?u ) { ( ontology:Q83620 ) ( ontology:Q44539 ) } . ?c rdf:type ?u } } } . FILTER ( ?e > ?l ) }
Mount Wutai Lepontine Alps
2
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type terrain
type temple
action find_reverse_tuple_counts
relation part of
type terrain
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Montserrat
relation part of
type temple
type thoroughfare
[[{'concept': 'temple'}, {'concept': 'thoroughfare'}], 'part of', {'concept': 'terrain'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) ?f WHERE { VALUES ( ?b ) { ( ontology:temple ) ( ontology:thoroughfare ) } . ?s rdf:type ?b } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:part_of resource:Montserrat . { VALUES ( ?u ) { ( ontology:thoroughfare ) ( ontology:temple ) } . ?c rdf:type ?u } } } . FILTER ( ?e > ?l ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q732115
P17
Q15617994
USER
How many administrative territories are Montserrat situated in ?
(Q732115,P17,c(Q15617994))
action count
action filter_type
action find
entity Q732115
relation P17
type Q15617994
['Q732115', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { resource:Q732115 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Montserrat
action count
action filter_type
action find
entity Montserrat
relation country
type designation for an administrative territorial entity
['Montserrat', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { resource:Montserrat property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q29
(Q732115,P17,c(Q15617994))
action count
action filter_type
action find
entity Q732115
relation P17
type Q15617994
[ANSWER]
['Q732115', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { resource:Q732115 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Spain
1
action count
action filter_type
action find
entity Montserrat
relation country
type designation for an administrative territorial entity
['Montserrat', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { resource:Montserrat property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q673076
P17
Q15617994
USER
Which administrative territory does Arkansas State Capitol belong to ?
(Q673076,P17,c(Q15617994))
action filter_type
action find
entity Q673076
relation P17
type Q15617994
['Q673076', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q673076 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Arkansas State Capitol
action filter_type
action find
entity Arkansas State Capitol
relation country
type designation for an administrative territorial entity
['Arkansas State Capitol', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Arkansas_State_Capitol property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q673076,P17,c(Q15617994))
action filter_type
action find
entity Q673076
relation P17
type Q15617994
Arkansas State Capitol belongs to [ANSWER]
['Q673076', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q673076 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
United States of America
Arkansas State Capitol belongs to United States of America
United States of America
action filter_type
action find
entity Arkansas State Capitol
relation country
type designation for an administrative territorial entity
['Arkansas State Capitol', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Arkansas_State_Capitol property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]