Simple Question (Direct)
Simple Question
Q6548147
P1412
Q34770
USER
Which language can Lillian Hoban read ?
(Q6548147,P1412,c(Q34770))
action filter_type
action find
entity Q6548147
relation P1412
type Q34770
['Q6548147', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q34770 . resource:Q6548147 property:P1412 ?g }
Lillian Hoban
action filter_type
action find
entity Lillian Hoban
relation languages spoken, written or signed
type language
['Lillian Hoban', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:language . resource:Lillian_Hoban property:languages_spoken,_written_or_signed ?g }
[]
language
Q1860
SYSTEM
English
Q1860
(Q6548147,P1412,c(Q34770))
action filter_type
action find
entity Q6548147
relation P1412
type Q34770
Lillian Hoban can read in [ANSWER]
['Q6548147', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q34770 . resource:Q6548147 property:P1412 ?g }
English
Lillian Hoban can read in English
English
action filter_type
action find
entity Lillian Hoban
relation languages spoken, written or signed
type language
['Lillian Hoban', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:language . resource:Lillian_Hoban property:languages_spoken,_written_or_signed ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6548147
P26
Q502895
USER
Which person is married to that one ?
(Q1860,P26,c(Q502895))
action filter_type
action find
entity Q6548147
relation P26
type Q502895
['Q1860', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q6548147 property:P26 ?m . ?m rdf:type ontology:Q502895 }
Lillian Hoban
action filter_type
action find
entity Lillian Hoban
relation spouse
type common name
['English', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Lillian_Hoban property:spouse ?m . ?m rdf:type ontology:common_name }
[]
common name
Q1353673
SYSTEM
Russell Hoban
Q1353673
(Q1860,P26,c(Q502895))
action filter_type
action find
entity Q6548147
relation P26
type Q502895
He [ANSWER] is married to that one
['Q1860', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q6548147 property:P26 ?m . ?m rdf:type ontology:Q502895 }
Russell Hoban
He Russell Hoban is married to that one
Russell Hoban
action filter_type
action find
entity Lillian Hoban
relation spouse
type common name
['English', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Lillian_Hoban property:spouse ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6548147
P20
Q41176
USER
Which building is the place of death of Lillian Hoban ?
(Q6548147,P20,c(Q41176))
action filter_type
action find
entity Q6548147
relation P20
type Q41176
['Q6548147', 'P20', {'concept': 'Q41176'}]
SELECT DISTINCT ?i WHERE { resource:Q6548147 property:P20 ?i . ?i rdf:type ontology:Q41176 }
Lillian Hoban
action filter_type
action find
entity Lillian Hoban
relation place of death
type building
['Lillian Hoban', 'place of death', {'concept': 'building'}]
SELECT DISTINCT ?i WHERE { resource:Lillian_Hoban property:place_of_death ?i . ?i rdf:type ontology:building }
[]
building
Q17183896
SYSTEM
Presbyterian Hospital
Q17183896
(Q6548147,P20,c(Q41176))
action filter_type
action find
entity Q6548147
relation P20
type Q41176
Church [ANSWER] is the place of death of Lillian Hoban
['Q6548147', 'P20', {'concept': 'Q41176'}]
SELECT DISTINCT ?i WHERE { resource:Q6548147 property:P20 ?i . ?i rdf:type ontology:Q41176 }
Presbyterian Hospital
Church Presbyterian Hospital is the place of death of Lillian Hoban
Presbyterian Hospital
action filter_type
action find
entity Lillian Hoban
relation place of death
type building
['Lillian Hoban', 'place of death', {'concept': 'building'}]
SELECT DISTINCT ?i WHERE { resource:Lillian_Hoban property:place_of_death ?i . ?i rdf:type ontology:building }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q18218170
Q41176
USER
And what about Edwin Warfield III?
(Q18218170,P20,c(Q41176))
action filter_type
action find
entity Q18218170
relation P20
type Q41176
['Q18218170', 'P20', {'concept': 'Q41176'}]
SELECT DISTINCT ?s WHERE { resource:Q18218170 property:P20 ?s . ?s rdf:type ontology:Q41176 }
Edwin Warfield III
action filter_type
action find
entity Edwin Warfield III
relation place of death
type building
['Edwin Warfield III', 'place of death', {'concept': 'building'}]
SELECT DISTINCT ?s WHERE { resource:Edwin_Warfield_III property:place_of_death ?s . ?s rdf:type ontology:building }
[]
building
Q7586717
SYSTEM
St. Agnes Hospital
Q7586717
(Q18218170,P20,c(Q41176))
action filter_type
action find
entity Q18218170
relation P20
type Q41176
[ANSWER]
['Q18218170', 'P20', {'concept': 'Q41176'}]
SELECT DISTINCT ?s WHERE { resource:Q18218170 property:P20 ?s . ?s rdf:type ontology:Q41176 }
St. Agnes Hospital
St. Agnes Hospital
action filter_type
action find
entity Edwin Warfield III
relation place of death
type building
['Edwin Warfield III', 'place of death', {'concept': 'building'}]
SELECT DISTINCT ?s WHERE { resource:Edwin_Warfield_III property:place_of_death ?s . ?s rdf:type ontology:building }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1353673
P106
Q12737077 Q28640
USER
How many occupations or professions are the professions of Russell Hoban ?
(Q1353673,P106,c(Q12737077)) (Q1353673,P106,c(Q28640))
action count
action union
action filter_type
action find
entity Q1353673
relation P106
type Q12737077
action filter_type
action find
entity Q1353673
relation P106
type Q28640
['Q1353673', 'P106', {'concept': 'Q12737077'}] ['Q1353673', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { ?x rdf:type ?o . VALUES ( ?o ) { ( ontology:Q12737077 ) ( ontology:Q28640 ) } }
Russell Hoban
action count
action union
action filter_type
action find
entity Russell Hoban
relation occupation
type occupation
action filter_type
action find
entity Russell Hoban
relation occupation
type profession
['Russell Hoban', 'occupation', {'concept': 'occupation'}] ['Russell Hoban', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { ?x rdf:type ?o . VALUES ( ?o ) { ( ontology:occupation ) ( ontology:profession ) } }
[]
occupation profession
SYSTEM
6
Q28389 Q6625963 Q4853732 Q36180 Q18844224 Q8178443
(Q1353673,P106,c(Q12737077)) (Q1353673,P106,c(Q28640))
action count
action union
action filter_type
action find
entity Q1353673
relation P106
type Q12737077
action filter_type
action find
entity Q1353673
relation P106
type Q28640
[ANSWER]
['Q1353673', 'P106', {'concept': 'Q12737077'}] ['Q1353673', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { ?x rdf:type ?o . VALUES ( ?o ) { ( ontology:Q12737077 ) ( ontology:Q28640 ) } }
screenwriter novelist children's writer writer science fiction writer librettist
6
action count
action union
action filter_type
action find
entity Russell Hoban
relation occupation
type occupation
action filter_type
action find
entity Russell Hoban
relation occupation
type profession
['Russell Hoban', 'occupation', {'concept': 'occupation'}] ['Russell Hoban', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { ?x rdf:type ?o . VALUES ( ?o ) { ( ontology:occupation ) ( ontology:profession ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1321
P407
Q34770 Q82799 Q14795564
USER
How many languages are less number of names or determinators for date of periodic occurrence composed in than Spanish ?
(c(Q82799)|c(Q14795564),P407,c(Q34770))
action count
action less
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action find_reverse_tuple_counts
relation P407
type Q34770
type Q14795564
action count
action filter_multi_types
action find_reverse
entity Q1321
relation P407
type Q82799
type Q14795564
[[{'concept': 'Q82799'}, {'concept': 'Q14795564'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?r ) WHERE { ?d rdf:type ?u . VALUES ( ?u ) { ( ontology:Q82799 ) ( ontology:Q14795564 ) } } GROUP BY ?j } . FILTER ( ?r < ?w ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ontology:Q14795564 ) ( ontology:Q82799 ) } . ?z rdf:type ?f } . ?z property:P407 resource:Q1321 } } }
Spanish
action count
action less
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action find_reverse_tuple_counts
relation language of work or name
type language
type determinator for date of periodic occurrence
action count
action filter_multi_types
action find_reverse
entity Spanish
relation language of work or name
type name
type determinator for date of periodic occurrence
[[{'concept': 'name'}, {'concept': 'determinator for date of periodic occurrence'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?r ) WHERE { ?d rdf:type ?u . VALUES ( ?u ) { ( ontology:name ) ( ontology:determinator_for_date_of_periodic_occurrence ) } } GROUP BY ?j } . FILTER ( ?r < ?w ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ontology:determinator_for_date_of_periodic_occurrence ) ( ontology:name ) } . ?z rdf:type ?f } . ?z property:language_of_work_or_name resource:Spanish } } }
[]
language name determinator for date of periodic occurrence
SYSTEM
27
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799)|c(Q14795564),P407,c(Q34770))
action count
action less
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action find_reverse_tuple_counts
relation P407
type Q34770
type Q14795564
action count
action filter_multi_types
action find_reverse
entity Q1321
relation P407
type Q82799
type Q14795564
[ANSWER]
[[{'concept': 'Q82799'}, {'concept': 'Q14795564'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?r ) WHERE { ?d rdf:type ?u . VALUES ( ?u ) { ( ontology:Q82799 ) ( ontology:Q14795564 ) } } GROUP BY ?j } . FILTER ( ?r < ?w ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ontology:Q14795564 ) ( ontology:Q82799 ) } . ?z rdf:type ?f } . ?z property:P407 resource:Q1321 } } }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak 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
27
action count
action less
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action find_reverse_tuple_counts
relation language of work or name
type language
type determinator for date of periodic occurrence
action count
action filter_multi_types
action find_reverse
entity Spanish
relation language of work or name
type name
type determinator for date of periodic occurrence
[[{'concept': 'name'}, {'concept': 'determinator for date of periodic occurrence'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?r ) WHERE { ?d rdf:type ?u . VALUES ( ?u ) { ( ontology:name ) ( ontology:determinator_for_date_of_periodic_occurrence ) } } GROUP BY ?j } . FILTER ( ?r < ?w ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ontology:determinator_for_date_of_periodic_occurrence ) ( ontology:name ) } . ?z rdf:type ?f } . ?z property:language_of_work_or_name resource:Spanish } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1153108
P366
Q41176 Q2668072 Q811979
USER
Which buildings represent the main use of greater number of collections and architectural structures than multiplex ?
(c(Q2668072)|c(Q811979),P366,c(Q41176))
action greater
action union
action find_reverse_tuple_counts
relation P366
type Q41176
type Q2668072
action find_reverse_tuple_counts
relation P366
type Q41176
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q1153108
relation P366
type Q2668072
type Q811979
[[{'concept': 'Q2668072'}, {'concept': 'Q811979'}], 'P366', {'concept': 'Q41176'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?i ) WHERE { { ?y property:P366 ?b . ?y rdf:type ontology:Q2668072 . ?b rdf:type ontology:Q41176 } UNION { ?y property:P366 ?b . ?b rdf:type ontology:Q41176 . ?y rdf:type ontology:Q811979 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:P366 resource:Q1153108 . { { ?v rdf:type ontology:Q2668072 } UNION { ?v rdf:type ontology:Q811979 } } } } . FILTER ( ?i > ?u ) }
multiplex
action greater
action union
action find_reverse_tuple_counts
relation use
type building
type collection
action find_reverse_tuple_counts
relation use
type building
type architectural structure
action count
action filter_multi_types
action find_reverse
entity multiplex
relation use
type collection
type architectural structure
[[{'concept': 'collection'}, {'concept': 'architectural structure'}], 'use', {'concept': 'building'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?i ) WHERE { { ?y property:use ?b . ?y rdf:type ontology:collection . ?b rdf:type ontology:building } UNION { ?y property:use ?b . ?b rdf:type ontology:building . ?y rdf:type ontology:architectural_structure } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:use resource:multiplex . { { ?v rdf:type ontology:collection } UNION { ?v rdf:type ontology:architectural_structure } } } } . FILTER ( ?i > ?u ) }
[]
building collection architectural structure
Q27686 Q133215
SYSTEM
hotel, casino
Q27686 Q133215
(c(Q2668072)|c(Q811979),P366,c(Q41176))
action greater
action union
action find_reverse_tuple_counts
relation P366
type Q41176
type Q2668072
action find_reverse_tuple_counts
relation P366
type Q41176
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q1153108
relation P366
type Q2668072
type Q811979
[ANSWERS] represent the main use of greater number of collections and architectural structures than multiplex
[[{'concept': 'Q2668072'}, {'concept': 'Q811979'}], 'P366', {'concept': 'Q41176'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?i ) WHERE { { ?y property:P366 ?b . ?y rdf:type ontology:Q2668072 . ?b rdf:type ontology:Q41176 } UNION { ?y property:P366 ?b . ?b rdf:type ontology:Q41176 . ?y rdf:type ontology:Q811979 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:P366 resource:Q1153108 . { { ?v rdf:type ontology:Q2668072 } UNION { ?v rdf:type ontology:Q811979 } } } } . FILTER ( ?i > ?u ) }
hotel casino
Hotel and casino represent the main use of greater number of collections and architectural structures than multiplex
hotel casino
action greater
action union
action find_reverse_tuple_counts
relation use
type building
type collection
action find_reverse_tuple_counts
relation use
type building
type architectural structure
action count
action filter_multi_types
action find_reverse
entity multiplex
relation use
type collection
type architectural structure
[[{'concept': 'collection'}, {'concept': 'architectural structure'}], 'use', {'concept': 'building'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?i ) WHERE { { ?y property:use ?b . ?y rdf:type ontology:collection . ?b rdf:type ontology:building } UNION { ?y property:use ?b . ?b rdf:type ontology:building . ?y rdf:type ontology:architectural_structure } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:use resource:multiplex . { { ?v rdf:type ontology:collection } UNION { ?v rdf:type ontology:architectural_structure } } } } . FILTER ( ?i > ?u ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3339164
P366
Q18142
USER
Do Newton Suites have their main utilization as those buildings ?
(Q3339164,P366,Q27686) (Q3339164,P366,Q133215)
action is_in
entity prev_answer
action find
entity Q3339164
relation P366
['Q3339164', 'P366', 'Q27686'] ['Q3339164', 'P366', 'Q133215']
ASK WHERE { resource:Q3339164 property:P366 ?c . VALUES ( ?c ) { ( resource:Q27686 ) ( resource:Q133215 ) } }
Newton Suites
action is_in
entity prev_answer
action find
entity Newton Suites
relation use
['Newton Suites', 'use', 'hotel'] ['Newton Suites', 'use', 'casino']
ASK WHERE { resource:Newton_Suites property:use ?c . VALUES ( ?c ) { ( resource:hotel ) ( resource:casino ) } }
[]
tower block
SYSTEM
NO
(Q3339164,P366,Q27686) (Q3339164,P366,Q133215)
action is_in
entity prev_answer
action find
entity Q3339164
relation P366
[ANSWER]
['Q3339164', 'P366', 'Q27686'] ['Q3339164', 'P366', 'Q133215']
ASK WHERE { resource:Q3339164 property:P366 ?c . VALUES ( ?c ) { ( resource:Q27686 ) ( resource:Q133215 ) } }
No
action is_in
entity prev_answer
action find
entity Newton Suites
relation use
['Newton Suites', 'use', 'hotel'] ['Newton Suites', 'use', 'casino']
ASK WHERE { resource:Newton_Suites property:use ?c . VALUES ( ?c ) { ( resource:hotel ) ( resource:casino ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6548147
P25
Q502895
USER
Which person has Lillian Hoban as mother ?
(c(Q502895),P25,Q6548147)
action filter_type
action find_reverse
entity Q6548147
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q6548147']
SELECT DISTINCT ?r WHERE { ?r property:P25 resource:Q6548147 . ?r rdf:type ontology:Q502895 }
Lillian Hoban
action filter_type
action find_reverse
entity Lillian Hoban
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Lillian Hoban']
SELECT DISTINCT ?r WHERE { ?r property:mother resource:Lillian_Hoban . ?r rdf:type ontology:common_name }
[]
common name
Q16729851
SYSTEM
Phoebe Hoban
Q16729851
(c(Q502895),P25,Q6548147)
action filter_type
action find_reverse
entity Q6548147
relation P25
type Q502895
[ANSWER] has Lillian Hoban as mother
[{'concept': 'Q502895'}, 'P25', 'Q6548147']
SELECT DISTINCT ?r WHERE { ?r property:P25 resource:Q6548147 . ?r rdf:type ontology:Q502895 }
Phoebe Hoban
Phoebe Hoban has Lillian Hoban as mother
Phoebe Hoban
action filter_type
action find_reverse
entity Lillian Hoban
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Lillian Hoban']
SELECT DISTINCT ?r WHERE { ?r property:mother resource:Lillian_Hoban . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16729851
P21
Q290
USER
What is the sex of that person ?
(Q16729851,P21,c(Q290))
action filter_type
action find
entity Q16729851
relation P21
type Q290
['Q16729851', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q290 . resource:Q16729851 property:P21 ?k }
Phoebe Hoban
action filter_type
action find
entity Phoebe Hoban
relation gender
type sex
['Phoebe Hoban', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:sex . resource:Phoebe_Hoban property:gender ?k }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q16729851,P21,c(Q290))
action filter_type
action find
entity Q16729851
relation P21
type Q290
The sex of that person is the [ANSWER]
['Q16729851', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q290 . resource:Q16729851 property:P21 ?k }
female
The sex of that person is the female
female
action filter_type
action find
entity Phoebe Hoban
relation gender
type sex
['Phoebe Hoban', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:sex . resource:Phoebe_Hoban property:gender ?k }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1153108
P366
Q41176 Q7743 Q811430
USER
How many buildings represent the main use of approximately the same number of homes and constructions as multiplex ?
(c(Q7743)|c(Q811430),P366,c(Q41176))
action count
action approx
action union
action find_reverse_tuple_counts
relation P366
type Q41176
type Q7743
action find_reverse_tuple_counts
relation P366
type Q41176
type Q811430
action count
action filter_multi_types
action find_reverse
entity Q1153108
relation P366
type Q7743
type Q811430
[[{'concept': 'Q7743'}, {'concept': 'Q811430'}], 'P366', {'concept': 'Q41176'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) ?m WHERE { VALUES ( ?r ) { ( ontology:Q7743 ) ( ontology:Q811430 ) } . ?j rdf:type ?r } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { ?p property:P366 resource:Q1153108 . { VALUES ( ?o ) { ( ontology:Q7743 ) ( ontology:Q811430 ) } . ?p rdf:type ?o } } } . FILTER ( ?k = ?n ) }
multiplex
action count
action approx
action union
action find_reverse_tuple_counts
relation use
type building
type home
action find_reverse_tuple_counts
relation use
type building
type construction
action count
action filter_multi_types
action find_reverse
entity multiplex
relation use
type home
type construction
[[{'concept': 'home'}, {'concept': 'construction'}], 'use', {'concept': 'building'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) ?m WHERE { VALUES ( ?r ) { ( ontology:home ) ( ontology:construction ) } . ?j rdf:type ?r } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { ?p property:use resource:multiplex . { VALUES ( ?o ) { ( ontology:home ) ( ontology:construction ) } . ?p rdf:type ?o } } } . FILTER ( ?k = ?n ) }
[]
building home construction
SYSTEM
15
Q131295 Q83405 Q5171053 Q13218805 Q115278 Q57821 Q131263 Q1763828 Q181623 Q16970 Q212198 Q1153108 Q827890 Q2080521 Q11315
(c(Q7743)|c(Q811430),P366,c(Q41176))
action count
action approx
action union
action find_reverse_tuple_counts
relation P366
type Q41176
type Q7743
action find_reverse_tuple_counts
relation P366
type Q41176
type Q811430
action count
action filter_multi_types
action find_reverse
entity Q1153108
relation P366
type Q7743
type Q811430
[ANSWER]
[[{'concept': 'Q7743'}, {'concept': 'Q811430'}], 'P366', {'concept': 'Q41176'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) ?m WHERE { VALUES ( ?r ) { ( ontology:Q7743 ) ( ontology:Q811430 ) } . ?j rdf:type ?r } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { ?p property:P366 resource:Q1153108 . { VALUES ( ?o ) { ( ontology:Q7743 ) ( ontology:Q811430 ) } . ?p rdf:type ?o } } } . FILTER ( ?k = ?n ) }
brothel factory corn exchange multi-storey car park Fire temple fortification barracks multi-purpose hall depot church pub multiplex industrial laundry market hall shopping mall
15
action count
action approx
action union
action find_reverse_tuple_counts
relation use
type building
type home
action find_reverse_tuple_counts
relation use
type building
type construction
action count
action filter_multi_types
action find_reverse
entity multiplex
relation use
type home
type construction
[[{'concept': 'home'}, {'concept': 'construction'}], 'use', {'concept': 'building'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) ?m WHERE { VALUES ( ?r ) { ( ontology:home ) ( ontology:construction ) } . ?j rdf:type ?r } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { ?p property:use resource:multiplex . { VALUES ( ?o ) { ( ontology:home ) ( ontology:construction ) } . ?p rdf:type ?o } } } . FILTER ( ?k = ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q46124
P366
Q41176 Q7743 Q811430
USER
And also tell me about sanatorium?
(c(Q7743)|c(Q811430),P366,c(Q41176))
action count
action approx
action union
action find_reverse_tuple_counts
relation P366
type Q41176
type Q7743
action find_reverse_tuple_counts
relation P366
type Q41176
type Q811430
action count
action filter_multi_types
action find_reverse
entity Q46124
relation P366
type Q7743
type Q811430
[[{'concept': 'Q7743'}, {'concept': 'Q811430'}], 'P366', {'concept': 'Q41176'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?s ) WHERE { VALUES ( ?z ) { ( ontology:Q7743 ) ( ontology:Q811430 ) } . ?q rdf:type ?z } GROUP BY ?n } . FILTER ( ?s = ?l ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { ?f property:P366 resource:Q46124 . { { ?f rdf:type ontology:Q7743 } UNION { ?f rdf:type ontology:Q811430 } } } } }
sanatorium
action count
action approx
action union
action find_reverse_tuple_counts
relation use
type building
type home
action find_reverse_tuple_counts
relation use
type building
type construction
action count
action filter_multi_types
action find_reverse
entity sanatorium
relation use
type home
type construction
[[{'concept': 'home'}, {'concept': 'construction'}], 'use', {'concept': 'building'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?s ) WHERE { VALUES ( ?z ) { ( ontology:home ) ( ontology:construction ) } . ?q rdf:type ?z } GROUP BY ?n } . FILTER ( ?s = ?l ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { ?f property:use resource:sanatorium . { { ?f rdf:type ontology:home } UNION { ?f rdf:type ontology:construction } } } } }
[]
building home construction
SYSTEM
2
Q3661265 Q46124
(c(Q7743)|c(Q811430),P366,c(Q41176))
action count
action approx
action union
action find_reverse_tuple_counts
relation P366
type Q41176
type Q7743
action find_reverse_tuple_counts
relation P366
type Q41176
type Q811430
action count
action filter_multi_types
action find_reverse
entity Q46124
relation P366
type Q7743
type Q811430
[ANSWER]
[[{'concept': 'Q7743'}, {'concept': 'Q811430'}], 'P366', {'concept': 'Q41176'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?s ) WHERE { VALUES ( ?z ) { ( ontology:Q7743 ) ( ontology:Q811430 ) } . ?q rdf:type ?z } GROUP BY ?n } . FILTER ( ?s = ?l ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { ?f property:P366 resource:Q46124 . { { ?f rdf:type ontology:Q7743 } UNION { ?f rdf:type ontology:Q811430 } } } } }
student house sanatorium
2
action count
action approx
action union
action find_reverse_tuple_counts
relation use
type building
type home
action find_reverse_tuple_counts
relation use
type building
type construction
action count
action filter_multi_types
action find_reverse
entity sanatorium
relation use
type home
type construction
[[{'concept': 'home'}, {'concept': 'construction'}], 'use', {'concept': 'building'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?s ) WHERE { VALUES ( ?z ) { ( ontology:home ) ( ontology:construction ) } . ?q rdf:type ?z } GROUP BY ?n } . FILTER ( ?s = ?l ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { ?f property:use resource:sanatorium . { { ?f rdf:type ontology:home } UNION { ?f rdf:type ontology:construction } } } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16571631 Q18218170
P27
Q15617994
USER
Which administrative territories are Edwin Warfield III or Leandro Caselli a civilian of ?
OR((Q18218170,P27,c(Q15617994)), (Q16571631,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q18218170
relation P27
action find
entity Q16571631
relation P27
type Q15617994
{'OR': [['Q18218170', 'P27', {'concept': 'Q15617994'}], ['Q16571631', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . { VALUES ( ?z ) { ( resource:Q18218170 ) ( resource:Q16571631 ) } . ?z property:P27 ?n } }
Leandro Caselli Edwin Warfield III
action filter_type
action union
action find
entity Edwin Warfield III
relation country of citizenship
action find
entity Leandro Caselli
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Edwin Warfield III', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Leandro Caselli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?z ) { ( resource:Edwin_Warfield_III ) ( resource:Leandro_Caselli ) } . ?z property:country_of_citizenship ?n } }
[]
designation for an administrative territorial entity
Q30 Q38
SYSTEM
United States of America, Italy
Q30 Q38
OR((Q18218170,P27,c(Q15617994)), (Q16571631,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q18218170
relation P27
action find
entity Q16571631
relation P27
type Q15617994
[ANSWERS] are Edwin Warfield III or Leandro Caselli a civilian of
{'OR': [['Q18218170', 'P27', {'concept': 'Q15617994'}], ['Q16571631', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . { VALUES ( ?z ) { ( resource:Q18218170 ) ( resource:Q16571631 ) } . ?z property:P27 ?n } }
United States of America Italy
United States of America and Italy are Edwin Warfield III or Leandro Caselli a civilian of
United States of America Italy
action filter_type
action union
action find
entity Edwin Warfield III
relation country of citizenship
action find
entity Leandro Caselli
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Edwin Warfield III', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Leandro Caselli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?z ) { ( resource:Edwin_Warfield_III ) ( resource:Leandro_Caselli ) } . ?z property:country_of_citizenship ?n } }
[]