Simple Question (Direct)
Simple Question
Q11927231
P1412
Q34770
USER
Which language is spoken by Jaume Aymà i Mayol ?
(Q11927231,P1412,c(Q34770))
action filter_type
action find
entity Q11927231
relation P1412
type Q34770
['Q11927231', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { resource:Q11927231 property:P1412 ?i . ?i rdf:type ontology:Q34770 }
Jaume Aymà i Mayol
action filter_type
action find
entity Jaume Aymà i Mayol
relation languages spoken, written or signed
type language
['Jaume Aymà i Mayol', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { resource:Jaume_Aymà_i_Mayol property:languages_spoken,_written_or_signed ?i . ?i rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q11927231,P1412,c(Q34770))
action filter_type
action find
entity Q11927231
relation P1412
type Q34770
[ANSWER] is spoken by Jaume Aymà i Mayol
['Q11927231', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { resource:Q11927231 property:P1412 ?i . ?i rdf:type ontology:Q34770 }
Spanish
Spanish is spoken by Jaume Aymà i Mayol
Spanish
action filter_type
action find
entity Jaume Aymà i Mayol
relation languages spoken, written or signed
type language
['Jaume Aymà i Mayol', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { resource:Jaume_Aymà_i_Mayol property:languages_spoken,_written_or_signed ?i . ?i rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11927231
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q1321,P27,c(Q15617994))
action filter_type
action find
entity Q11927231
relation P27
type Q15617994
['Q1321', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q11927231 property:P27 ?q }
Jaume Aymà i Mayol
action filter_type
action find
entity Jaume Aymà i Mayol
relation country of citizenship
type designation for an administrative territorial entity
['Spanish', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jaume_Aymà_i_Mayol property:country_of_citizenship ?q }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q1321,P27,c(Q15617994))
action filter_type
action find
entity Q11927231
relation P27
type Q15617994
[ANSWER] is that person a civilian of
['Q1321', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q11927231 property:P27 ?q }
Spain
Spain is that person a civilian of
Spain
action filter_type
action find
entity Jaume Aymà i Mayol
relation country of citizenship
type designation for an administrative territorial entity
['Spanish', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jaume_Aymà_i_Mayol property:country_of_citizenship ?q }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q11927231
P19
Q56061
USER
How many administrative territories were Jaume Aymà i Mayol born ?
(Q11927231,P19,c(Q56061))
action count
action filter_type
action find
entity Q11927231
relation P19
type Q56061
['Q11927231', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Q11927231 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Jaume Aymà i Mayol
action count
action filter_type
action find
entity Jaume Aymà i Mayol
relation place of birth
type administrative territorial entity
['Jaume Aymà i Mayol', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Jaume_Aymà_i_Mayol property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q1492
(Q11927231,P19,c(Q56061))
action count
action filter_type
action find
entity Q11927231
relation P19
type Q56061
[ANSWER]
['Q11927231', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Q11927231 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Barcelona
1
action count
action filter_type
action find
entity Jaume Aymà i Mayol
relation place of birth
type administrative territorial entity
['Jaume Aymà i Mayol', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Jaume_Aymà_i_Mayol property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q464956
P19
Q56061
USER
And also tell me about Szilárd Németh?
(Q464956,P19,c(Q56061))
action count
action filter_type
action find
entity Q464956
relation P19
type Q56061
['Q464956', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { ?m rdf:type ontology:Q56061 . resource:Q464956 property:P19 ?m }
Szilárd Németh
action count
action filter_type
action find
entity Szilárd Németh
relation place of birth
type administrative territorial entity
['Szilárd Németh', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Szilárd_Németh property:place_of_birth ?m }
[]
administrative territorial entity
SYSTEM
1
Q210796
(Q464956,P19,c(Q56061))
action count
action filter_type
action find
entity Q464956
relation P19
type Q56061
[ANSWER]
['Q464956', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { ?m rdf:type ontology:Q56061 . resource:Q464956 property:P19 ?m }
Komárno
1
action count
action filter_type
action find
entity Szilárd Németh
relation place of birth
type administrative territorial entity
['Szilárd Németh', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Szilárd_Németh property:place_of_birth ?m }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q20755992
Q56061
USER
And what about Franz Bernhard Neuffer?
(Q20755992,P19,c(Q56061))
action count
action filter_type
action find
entity Q20755992
relation P19
type Q56061
['Q20755992', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { resource:Q20755992 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Franz Bernhard Neuffer
action count
action filter_type
action find
entity Franz Bernhard Neuffer
relation place of birth
type administrative territorial entity
['Franz Bernhard Neuffer', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { resource:Franz_Bernhard_Neuffer property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
(Q20755992,P19,c(Q56061))
action count
action filter_type
action find
entity Q20755992
relation P19
type Q56061
[ANSWER]
['Q20755992', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { resource:Q20755992 property:P19 ?h . ?h rdf:type ontology:Q56061 }
1
action count
action filter_type
action find
entity Franz Bernhard Neuffer
relation place of birth
type administrative territorial entity
['Franz Bernhard Neuffer', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { resource:Franz_Bernhard_Neuffer property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q9179444 Q11927231
P19
Q56061
USER
Which administrative territories are the birthplace of Jaume Aymà i Mayol or Brizio Giustiniani ?
OR((Q11927231,P19,c(Q56061)), (Q9179444,P19,c(Q56061)))
action filter_type
action union
action find
entity Q11927231
relation P19
action find
entity Q9179444
relation P19
type Q56061
{'OR': [['Q11927231', 'P19', {'concept': 'Q56061'}], ['Q9179444', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . { VALUES ( ?f ) { ( resource:Q9179444 ) ( resource:Q11927231 ) } . ?f property:P19 ?y } }
Brizio Giustiniani Jaume Aymà i Mayol
action filter_type
action union
action find
entity Jaume Aymà i Mayol
relation place of birth
action find
entity Brizio Giustiniani
relation place of birth
type administrative territorial entity
{'OR': [['Jaume Aymà i Mayol', 'place of birth', {'concept': 'administrative territorial entity'}], ['Brizio Giustiniani', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . { VALUES ( ?f ) { ( resource:Brizio_Giustiniani ) ( resource:Jaume_Aymà_i_Mayol ) } . ?f property:place_of_birth ?y } }
[]
administrative territorial entity
Q1492 Q1449
SYSTEM
Barcelona, Genoa
Q1492 Q1449
OR((Q11927231,P19,c(Q56061)), (Q9179444,P19,c(Q56061)))
action filter_type
action union
action find
entity Q11927231
relation P19
action find
entity Q9179444
relation P19
type Q56061
[ANSWERS] are the birthplace of Jaume Aymà i Mayol or Brizio Giustiniani
{'OR': [['Q11927231', 'P19', {'concept': 'Q56061'}], ['Q9179444', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . { VALUES ( ?f ) { ( resource:Q9179444 ) ( resource:Q11927231 ) } . ?f property:P19 ?y } }
Barcelona Genoa
Barcelona and Genoa are the birthplace of Jaume Aymà i Mayol or Brizio Giustiniani
Barcelona Genoa
action filter_type
action union
action find
entity Jaume Aymà i Mayol
relation place of birth
action find
entity Brizio Giustiniani
relation place of birth
type administrative territorial entity
{'OR': [['Jaume Aymà i Mayol', 'place of birth', {'concept': 'administrative territorial entity'}], ['Brizio Giustiniani', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . { VALUES ( ?f ) { ( resource:Brizio_Giustiniani ) ( resource:Jaume_Aymà_i_Mayol ) } . ?f property:place_of_birth ?y } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P417
Q502895 Q1445650 Q15617994
USER
Which administrative territories have max number of people and holidays as their patron saint ?
(c(Q15617994),P417,c(Q502895)|c(Q1445650))
action argmax
action union
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) ?i WHERE { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } GROUP BY ?i } } . FILTER ( ?w = ?p ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) ?j WHERE { { ?j property:P417 ?k . ?k rdf:type ontology:Q502895 . ?j rdf:type ontology:Q15617994 } UNION { ?j property:P417 ?k . ?j rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1445650 } } GROUP BY ?j } }
action argmax
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) ?i WHERE { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:common_name ) ( ontology:holiday ) } } GROUP BY ?i } } . FILTER ( ?w = ?p ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) ?j WHERE { { ?j property:patron_saint ?k . ?k rdf:type ontology:common_name . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?j property:patron_saint ?k . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:holiday } } GROUP BY ?j } }
[]
common name holiday designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(c(Q15617994),P417,c(Q502895)|c(Q1445650))
action argmax
action union
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
[ANSWER] have max number of people and holidays as their patron saint
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) ?i WHERE { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } GROUP BY ?i } } . FILTER ( ?w = ?p ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) ?j WHERE { { ?j property:P417 ?k . ?k rdf:type ontology:Q502895 . ?j rdf:type ontology:Q15617994 } UNION { ?j property:P417 ?k . ?j rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1445650 } } GROUP BY ?j } }
Poland
Poland have max number of people and holidays as their patron saint
Poland
action argmax
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) ?i WHERE { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:common_name ) ( ontology:holiday ) } } GROUP BY ?i } } . FILTER ( ?w = ?p ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) ?j WHERE { { ?j property:patron_saint ?k . ?k rdf:type ontology:common_name . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?j property:patron_saint ?k . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:holiday } } GROUP BY ?j } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q36 Q1651455
P530
Q1048835
USER
Does La Ginebrosa have diplomatic relationships with Poland ?
(Q36,P530,Q1651455)
action is_in
entity Q1651455
action find
entity Q36
relation P530
['Q36', 'P530', 'Q1651455']
ASK WHERE { resource:Q36 property:P530 resource:Q1651455 }
Poland La Ginebrosa
action is_in
entity La Ginebrosa
action find
entity Poland
relation diplomatic relation
['Poland', 'diplomatic relation', 'La Ginebrosa']
ASK WHERE { resource:Poland property:diplomatic_relation resource:La_Ginebrosa }
[]
political territorial entity
SYSTEM
NO
(Q36,P530,Q1651455)
action is_in
entity Q1651455
action find
entity Q36
relation P530
[ANSWER]
['Q36', 'P530', 'Q1651455']
ASK WHERE { resource:Q36 property:P530 resource:Q1651455 }
No
action is_in
entity La Ginebrosa
action find
entity Poland
relation diplomatic relation
['Poland', 'diplomatic relation', 'La Ginebrosa']
ASK WHERE { resource:Poland property:diplomatic_relation resource:La_Ginebrosa }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q527897 Q20755992
P106
Q12737077
USER
Which occupations have Franz Bernhard Neuffer or Charles Sibley as his/her as a career ?
OR((Q20755992,P106,c(Q12737077)), (Q527897,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q20755992
relation P106
action find
entity Q527897
relation P106
type Q12737077
{'OR': [['Q20755992', 'P106', {'concept': 'Q12737077'}], ['Q527897', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q527897 property:P106 ?o } UNION { resource:Q20755992 property:P106 ?o } } . ?o rdf:type ontology:Q12737077 }
Charles Sibley Franz Bernhard Neuffer
action filter_type
action union
action find
entity Franz Bernhard Neuffer
relation occupation
action find
entity Charles Sibley
relation occupation
type occupation
{'OR': [['Franz Bernhard Neuffer', 'occupation', {'concept': 'occupation'}], ['Charles Sibley', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Charles_Sibley property:occupation ?o } UNION { resource:Franz_Bernhard_Neuffer property:occupation ?o } } . ?o rdf:type ontology:occupation }
[]
occupation
Q1622272 Q1225716 Q36180 Q15839206 Q350979
SYSTEM
university teacher, ornithologist, writer, molecular biologist, zoologist
Q1622272 Q1225716 Q36180 Q15839206 Q350979
OR((Q20755992,P106,c(Q12737077)), (Q527897,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q20755992
relation P106
action find
entity Q527897
relation P106
type Q12737077
[ANSWERS] have Franz Bernhard Neuffer or Charles Sibley as his/her as a career
{'OR': [['Q20755992', 'P106', {'concept': 'Q12737077'}], ['Q527897', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q527897 property:P106 ?o } UNION { resource:Q20755992 property:P106 ?o } } . ?o rdf:type ontology:Q12737077 }
university teacher ornithologist writer molecular biologist zoologist
University teacher, ornithologist, writer, molecular biologist and zoologist have Franz Bernhard Neuffer or Charles Sibley as his/her as a career
university teacher ornithologist writer molecular biologist zoologist
action filter_type
action union
action find
entity Franz Bernhard Neuffer
relation occupation
action find
entity Charles Sibley
relation occupation
type occupation
{'OR': [['Franz Bernhard Neuffer', 'occupation', {'concept': 'occupation'}], ['Charles Sibley', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Charles_Sibley property:occupation ?o } UNION { resource:Franz_Bernhard_Neuffer property:occupation ?o } } . ?o rdf:type ontology:occupation }
[]