Simple Question (Direct)
Simple Question
Q9011230
P1412
Q34770
USER
Which language is spoken by Javier Godó Muntañola ?
(Q9011230,P1412,c(Q34770))
action filter_type
action find
entity Q9011230
relation P1412
type Q34770
['Q9011230', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { resource:Q9011230 property:P1412 ?o . ?o rdf:type ontology:Q34770 }
Javier Godó Muntañola
action filter_type
action find
entity Javier Godó Muntañola
relation languages spoken, written or signed
type language
['Javier Godó Muntañola', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { resource:Javier_Godó_Muntañola property:languages_spoken,_written_or_signed ?o . ?o rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q9011230,P1412,c(Q34770))
action filter_type
action find
entity Q9011230
relation P1412
type Q34770
[ANSWER] is spoken by Javier Godó Muntañola
['Q9011230', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { resource:Q9011230 property:P1412 ?o . ?o rdf:type ontology:Q34770 }
Spanish
Spanish is spoken by Javier Godó Muntañola
Spanish
action filter_type
action find
entity Javier Godó Muntañola
relation languages spoken, written or signed
type language
['Javier Godó Muntañola', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { resource:Javier_Godó_Muntañola property:languages_spoken,_written_or_signed ?o . ?o rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9011230
P22
Q502895
USER
Which person was the father of that one ?
(Q1321,P22,c(Q502895))
action filter_type
action find
entity Q9011230
relation P22
type Q502895
['Q1321', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q9011230 property:P22 ?m . ?m rdf:type ontology:Q502895 }
Javier Godó Muntañola
action filter_type
action find
entity Javier Godó Muntañola
relation father
type common name
['Spanish', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Javier_Godó_Muntañola property:father ?m . ?m rdf:type ontology:common_name }
[]
common name
Q8263944
SYSTEM
Carlos Godó Valls
Q8263944
(Q1321,P22,c(Q502895))
action filter_type
action find
entity Q9011230
relation P22
type Q502895
[ANSWER] was the father of that one
['Q1321', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q9011230 property:P22 ?m . ?m rdf:type ontology:Q502895 }
Carlos Godó Valls
Carlos Godó Valls was the father of that one
Carlos Godó Valls
action filter_type
action find
entity Javier Godó Muntañola
relation father
type common name
['Spanish', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Javier_Godó_Muntañola property:father ?m . ?m rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q8263944 Q5666370
P40
Q502895
USER
Does Ramón Godó Lallana have that one as an offspring ?
(Q5666370,P40,Q8263944)
action is_in
entity Q8263944
action find
entity Q5666370
relation P40
['Q5666370', 'P40', 'Q8263944']
ASK WHERE { resource:Q5666370 property:P40 resource:Q8263944 }
Carlos Godó Valls Ramón Godó Lallana
action is_in
entity Carlos Godó Valls
action find
entity Ramón Godó Lallana
relation child
['Ramón Godó Lallana', 'child', 'Carlos Godó Valls']
ASK WHERE { resource:Ramón_Godó_Lallana property:child resource:Carlos_Godó_Valls }
[]
common name
SYSTEM
YES
(Q5666370,P40,Q8263944)
action is_in
entity Q8263944
action find
entity Q5666370
relation P40
[ANSWER]
['Q5666370', 'P40', 'Q8263944']
ASK WHERE { resource:Q5666370 property:P40 resource:Q8263944 }
Yes
action is_in
entity Carlos Godó Valls
action find
entity Ramón Godó Lallana
relation child
['Ramón Godó Lallana', 'child', 'Carlos Godó Valls']
ASK WHERE { resource:Ramón_Godó_Lallana property:child resource:Carlos_Godó_Valls }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q9011230 Q29
P27
Q15617994
USER
Is Javier Godó Muntañola an inhabitant of Spain ?
(Q9011230,P27,Q29)
action is_in
entity Q29
action find
entity Q9011230
relation P27
['Q9011230', 'P27', 'Q29']
ASK WHERE { resource:Q9011230 property:P27 resource:Q29 }
Javier Godó Muntañola Spain
action is_in
entity Spain
action find
entity Javier Godó Muntañola
relation country of citizenship
['Javier Godó Muntañola', 'country of citizenship', 'Spain']
ASK WHERE { resource:Javier_Godó_Muntañola property:country_of_citizenship resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q9011230,P27,Q29)
action is_in
entity Q29
action find
entity Q9011230
relation P27
[ANSWER]
['Q9011230', 'P27', 'Q29']
ASK WHERE { resource:Q9011230 property:P27 resource:Q29 }
Yes
action is_in
entity Spain
action find
entity Javier Godó Muntañola
relation country of citizenship
['Javier Godó Muntañola', 'country of citizenship', 'Spain']
ASK WHERE { resource:Javier_Godó_Muntañola property:country_of_citizenship resource:Spain }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P407
Q34770 Q482994 Q82799
USER
Which languages are the languages of work for around 397 albums and names ?
(c(Q482994)|c(Q82799),P407,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q482994
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 397
[[{'concept': 'Q482994'}, {'concept': 'Q82799'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) ?x WHERE { { ?w property:P407 ?x . ?x rdf:type ontology:Q34770 . ?w rdf:type ontology:Q482994 } UNION { ?w property:P407 ?x . ?x rdf:type ontology:Q34770 . ?w rdf:type ontology:Q82799 } } GROUP BY ?x } . FILTER ( ?f = 397 ) }
action approx
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type album
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 397
[[{'concept': 'album'}, {'concept': 'name'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) ?x WHERE { { ?w property:language_of_work_or_name ?x . ?x rdf:type ontology:language . ?w rdf:type ontology:album } UNION { ?w property:language_of_work_or_name ?x . ?x rdf:type ontology:language . ?w rdf:type ontology:name } } GROUP BY ?x } . FILTER ( ?f = 397 ) }
[]
language album name
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q482994)|c(Q82799),P407,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q482994
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 397
[ANSWERS] are the languages of work for around 397 albums and names
[[{'concept': 'Q482994'}, {'concept': 'Q82799'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) ?x WHERE { { ?w property:P407 ?x . ?x rdf:type ontology:Q34770 . ?w rdf:type ontology:Q482994 } UNION { ?w property:P407 ?x . ?x rdf:type ontology:Q34770 . ?w rdf:type ontology:Q82799 } } GROUP BY ?x } . FILTER ( ?f = 397 ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
Old Egyptian, Old Church Slavonic and Etruscan are the languages of work for around 397 albums and names
Old Egyptian Old Church Slavonic Etruscan
action approx
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type album
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 397
[[{'concept': 'album'}, {'concept': 'name'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) ?x WHERE { { ?w property:language_of_work_or_name ?x . ?x rdf:type ontology:language . ?w rdf:type ontology:album } UNION { ?w property:language_of_work_or_name ?x . ?x rdf:type ontology:language . ?w rdf:type ontology:name } } GROUP BY ?x } . FILTER ( ?f = 397 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q447117
P1412 P21
Q502895
USER
Which people use Old Egyptian and have the gender as male ?
AND((c(Q502895),P1412,Q447117), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q447117
relation P1412
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P1412', 'Q447117'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?w WHERE { ?w property:P1412 resource:Q447117 . ?w property:P21 resource:Q6581097 . ?w rdf:type ontology:Q502895 }
male Old Egyptian
action filter_type
action intersection
action find_reverse
entity Old Egyptian
relation languages spoken, written or signed
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'languages spoken, written or signed', 'Old Egyptian'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?w WHERE { ?w property:languages_spoken,_written_or_signed resource:Old_Egyptian . ?w property:gender resource:male . ?w rdf:type ontology:common_name }
[]
common name
Q1162154 Q15815525
SYSTEM
Daniel Polz, Hi
Q1162154 Q15815525
AND((c(Q502895),P1412,Q447117), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q447117
relation P1412
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] use Old Egyptian and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P1412', 'Q447117'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?w WHERE { ?w property:P1412 resource:Q447117 . ?w property:P21 resource:Q6581097 . ?w rdf:type ontology:Q502895 }
Daniel Polz Hi
Daniel Polz and Hi use Old Egyptian and have the gender as male
Daniel Polz Hi
action filter_type
action intersection
action find_reverse
entity Old Egyptian
relation languages spoken, written or signed
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'languages spoken, written or signed', 'Old Egyptian'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?w WHERE { ?w property:languages_spoken,_written_or_signed resource:Old_Egyptian . ?w property:gender resource:male . ?w rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1162154 Q15815525
P21
Q290
USER
Which sexes do Daniel Polz and Hi belong to ?
(Q1162154,P21,c(Q290)) (Q15815525,P21,c(Q290))
action union
action filter_type
action find
entity Q1162154
relation P21
type Q290
action filter_type
action find
entity Q15815525
relation P21
type Q290
['Q1162154', 'P21', {'concept': 'Q290'}] ['Q15815525', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { { resource:Q1162154 property:P21 ?y . ?y rdf:type ontology:Q290 } UNION { resource:Q15815525 property:P21 ?y . ?y rdf:type ontology:Q290 } }
Daniel Polz Hi
action union
action filter_type
action find
entity Daniel Polz
relation gender
type sex
action filter_type
action find
entity Hi
relation gender
type sex
['Daniel Polz', 'gender', {'concept': 'sex'}] ['Hi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { { resource:Daniel_Polz property:gender ?y . ?y rdf:type ontology:sex } UNION { resource:Hi property:gender ?y . ?y rdf:type ontology:sex } }
[]
sex
Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097
(Q1162154,P21,c(Q290)) (Q15815525,P21,c(Q290))
action union
action filter_type
action find
entity Q1162154
relation P21
type Q290
action filter_type
action find
entity Q15815525
relation P21
type Q290
Daniel Polz and Hi belong to [ANSWER] and [ANSWER]
['Q1162154', 'P21', {'concept': 'Q290'}] ['Q15815525', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { { resource:Q1162154 property:P21 ?y . ?y rdf:type ontology:Q290 } UNION { resource:Q15815525 property:P21 ?y . ?y rdf:type ontology:Q290 } }
male male
Daniel Polz and Hi belong to male and male
male male
action union
action filter_type
action find
entity Daniel Polz
relation gender
type sex
action filter_type
action find
entity Hi
relation gender
type sex
['Daniel Polz', 'gender', {'concept': 'sex'}] ['Hi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { { resource:Daniel_Polz property:gender ?y . ?y rdf:type ontology:sex } UNION { resource:Hi property:gender ?y . ?y rdf:type ontology:sex } }
[]