Simple Question (Direct)
Simple Question
Q439767
P21
Q290
USER
Which sex does Shannon Lucio have ?
(Q439767,P21,c(Q290))
action filter_type
action find
entity Q439767
relation P21
type Q290
['Q439767', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q290 . resource:Q439767 property:P21 ?a }
Shannon Lucio
action filter_type
action find
entity Shannon Lucio
relation gender
type sex
['Shannon Lucio', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:sex . resource:Shannon_Lucio property:gender ?a }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q439767,P21,c(Q290))
action filter_type
action find
entity Q439767
relation P21
type Q290
Shannon Lucio has a [ANSWER]
['Q439767', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q290 . resource:Q439767 property:P21 ?a }
female
Shannon Lucio has a female
female
action filter_type
action find
entity Shannon Lucio
relation gender
type sex
['Shannon Lucio', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:sex . resource:Shannon_Lucio property:gender ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581072
P101
Q336
USER
Which science has field of work as that sex ?
(c(Q336),P101,Q6581072)
action filter_type
action find_reverse
entity Q6581072
relation P101
type Q336
[{'concept': 'Q336'}, 'P101', 'Q6581072']
SELECT DISTINCT ?c WHERE { ?c property:P101 resource:Q6581072 . ?c rdf:type ontology:Q336 }
female
action filter_type
action find_reverse
entity female
relation field of work
type science
[{'concept': 'science'}, 'field of work', 'female']
SELECT DISTINCT ?c WHERE { ?c property:field_of_work resource:female . ?c rdf:type ontology:science }
[]
science
Q35069
SYSTEM
women's studies
Q35069
(c(Q336),P101,Q6581072)
action filter_type
action find_reverse
entity Q6581072
relation P101
type Q336
The [ANSWER] has field of work as that sex
[{'concept': 'Q336'}, 'P101', 'Q6581072']
SELECT DISTINCT ?c WHERE { ?c property:P101 resource:Q6581072 . ?c rdf:type ontology:Q336 }
women's studies
The women's studies has field of work as that sex
women's studies
action filter_type
action find_reverse
entity female
relation field of work
type science
[{'concept': 'science'}, 'field of work', 'female']
SELECT DISTINCT ?c WHERE { ?c property:field_of_work resource:female . ?c rdf:type ontology:science }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q439767
P161
Q838948 Q15416
USER
How many works of art or television programs stars Shannon Lucio as actor ?
(c(Q838948),P161,Q439767) (c(Q15416),P161,Q439767)
action count
action union
action filter_type
action find_reverse
entity Q439767
relation P161
type Q838948
action filter_type
action find_reverse
entity Q439767
relation P161
type Q15416
[{'concept': 'Q838948'}, 'P161', 'Q439767'] [{'concept': 'Q15416'}, 'P161', 'Q439767']
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } }
Shannon Lucio
action count
action union
action filter_type
action find_reverse
entity Shannon Lucio
relation cast member
type work of art
action filter_type
action find_reverse
entity Shannon Lucio
relation cast member
type television program
[{'concept': 'work of art'}, 'cast member', 'Shannon Lucio'] [{'concept': 'television program'}, 'cast member', 'Shannon Lucio']
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:television_program ) ( ontology:work_of_art ) } }
[]
work of art television program
SYSTEM
5
Q148387 Q230496 Q5592084 Q18153132 Q982786
(c(Q838948),P161,Q439767) (c(Q15416),P161,Q439767)
action count
action union
action filter_type
action find_reverse
entity Q439767
relation P161
type Q838948
action filter_type
action find_reverse
entity Q439767
relation P161
type Q15416
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q439767'] [{'concept': 'Q15416'}, 'P161', 'Q439767']
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } }
Feast of Love Fireflies in the Garden Graduation The Perfect Guy The Oaks
5
action count
action union
action filter_type
action find_reverse
entity Shannon Lucio
relation cast member
type work of art
action filter_type
action find_reverse
entity Shannon Lucio
relation cast member
type television program
[{'concept': 'work of art'}, 'cast member', 'Shannon Lucio'] [{'concept': 'television program'}, 'cast member', 'Shannon Lucio']
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:television_program ) ( ontology:work_of_art ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q188847
P361
Q336 Q151885 Q1190554
USER
How many sciences are around the same number of concepts or events a part of as environmental science ?
(c(Q151885)|c(Q1190554),P361,c(Q336))
action count
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q336
type Q151885
action find_reverse_tuple_counts
relation P361
type Q336
type Q1190554
action count
action filter_multi_types
action find_reverse
entity Q188847
relation P361
type Q151885
type Q1190554
[[{'concept': 'Q151885'}, {'concept': 'Q1190554'}], 'P361', {'concept': 'Q336'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?x ) WHERE { VALUES ( ?o ) { ( ontology:Q151885 ) ( ontology:Q1190554 ) } . ?j rdf:type ?o } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:P361 resource:Q188847 . { VALUES ( ?m ) { ( ontology:Q1190554 ) ( ontology:Q151885 ) } . ?g rdf:type ?m } } } . FILTER ( ?x = ?d ) }
environmental science
action count
action approx
action union
action find_reverse_tuple_counts
relation part of
type science
type concept
action find_reverse_tuple_counts
relation part of
type science
type event
action count
action filter_multi_types
action find_reverse
entity environmental science
relation part of
type concept
type event
[[{'concept': 'concept'}, {'concept': 'event'}], 'part of', {'concept': 'science'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?x ) WHERE { VALUES ( ?o ) { ( ontology:concept ) ( ontology:event ) } . ?j rdf:type ?o } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:part_of resource:environmental_science . { VALUES ( ?m ) { ( ontology:event ) ( ontology:concept ) } . ?g rdf:type ?m } } } . FILTER ( ?x = ?d ) }
[]
science concept event
SYSTEM
44
Q228736 Q1662673 Q7094 Q7991 Q431 Q201339 Q208365 Q629350 Q629107 Q188847 Q3520855 Q2329 Q274490 Q269699 Q1578310 Q413 Q680004 Q2183296 Q39286 Q101333 Q13636890 Q190979 Q1143546 Q1268199 Q175156 Q3999 Q44703 Q2656157 Q3478658 Q11190 Q910164 Q246593 Q43035 Q333 Q37547 Q327358 Q7877 Q9096832 Q1298380 Q52107 Q365674 Q52139 Q1931480 Q133805
(c(Q151885)|c(Q1190554),P361,c(Q336))
action count
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q336
type Q151885
action find_reverse_tuple_counts
relation P361
type Q336
type Q1190554
action count
action filter_multi_types
action find_reverse
entity Q188847
relation P361
type Q151885
type Q1190554
[ANSWER]
[[{'concept': 'Q151885'}, {'concept': 'Q1190554'}], 'P361', {'concept': 'Q336'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?x ) WHERE { VALUES ( ?o ) { ( ontology:Q151885 ) ( ontology:Q1190554 ) } . ?j rdf:type ?o } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:P361 resource:Q188847 . { VALUES ( ?m ) { ( ontology:Q1190554 ) ( ontology:Q151885 ) } . ?g rdf:type ?m } } } . FILTER ( ?x = ?d ) }
materials science gender studies biochemistry natural science zoology public-key cryptography ethnomusicology labour science work-study environmental science arthropodology chemistry public finance systems theory paleobiology physics legal history carcinology entomology mechanical engineering algorithmics arachnology cultural studies Managerial finance onomastics human anatomy ornithology Zooniverse knowledge representation and reasoning medicine cheminformatics cryptographic primitive electrical engineering astronomy astrophysics word formation electrochemistry paleontological site sports science physical geography security engineering climatology neuroinformatics epidemiology
44
action count
action approx
action union
action find_reverse_tuple_counts
relation part of
type science
type concept
action find_reverse_tuple_counts
relation part of
type science
type event
action count
action filter_multi_types
action find_reverse
entity environmental science
relation part of
type concept
type event
[[{'concept': 'concept'}, {'concept': 'event'}], 'part of', {'concept': 'science'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?x ) WHERE { VALUES ( ?o ) { ( ontology:concept ) ( ontology:event ) } . ?j rdf:type ?o } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:part_of resource:environmental_science . { VALUES ( ?m ) { ( ontology:event ) ( ontology:concept ) } . ?g rdf:type ?m } } } . FILTER ( ?x = ?d ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q208365
P361
Q336 Q151885 Q1190554
USER
And how about ethnomusicology?
(c(Q151885)|c(Q1190554),P361,c(Q336))
action count
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q336
type Q151885
action find_reverse_tuple_counts
relation P361
type Q336
type Q1190554
action count
action filter_multi_types
action find_reverse
entity Q208365
relation P361
type Q151885
type Q1190554
[[{'concept': 'Q151885'}, {'concept': 'Q1190554'}], 'P361', {'concept': 'Q336'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) ?k WHERE { { ?s property:P361 ?k . ?s rdf:type ontology:Q151885 . ?k rdf:type ontology:Q336 } UNION { ?s property:P361 ?k . ?k rdf:type ontology:Q336 . ?s rdf:type ontology:Q1190554 } } GROUP BY ?k } . FILTER ( ?e = ?j ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { ?q property:P361 resource:Q208365 . { { ?q rdf:type ontology:Q151885 } UNION { ?q rdf:type ontology:Q1190554 } } } } }
ethnomusicology
action count
action approx
action union
action find_reverse_tuple_counts
relation part of
type science
type concept
action find_reverse_tuple_counts
relation part of
type science
type event
action count
action filter_multi_types
action find_reverse
entity ethnomusicology
relation part of
type concept
type event
[[{'concept': 'concept'}, {'concept': 'event'}], 'part of', {'concept': 'science'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) ?k WHERE { { ?s property:part_of ?k . ?s rdf:type ontology:concept . ?k rdf:type ontology:science } UNION { ?s property:part_of ?k . ?k rdf:type ontology:science . ?s rdf:type ontology:event } } GROUP BY ?k } . FILTER ( ?e = ?j ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { ?q property:part_of resource:ethnomusicology . { { ?q rdf:type ontology:concept } UNION { ?q rdf:type ontology:event } } } } }
[]
science concept event
SYSTEM
44
Q228736 Q1662673 Q7094 Q7991 Q431 Q201339 Q208365 Q629350 Q629107 Q188847 Q3520855 Q2329 Q274490 Q269699 Q1578310 Q413 Q680004 Q2183296 Q39286 Q101333 Q13636890 Q190979 Q1143546 Q1268199 Q175156 Q3999 Q44703 Q2656157 Q3478658 Q11190 Q910164 Q246593 Q43035 Q333 Q37547 Q327358 Q7877 Q9096832 Q1298380 Q52107 Q365674 Q52139 Q1931480 Q133805
(c(Q151885)|c(Q1190554),P361,c(Q336))
action count
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q336
type Q151885
action find_reverse_tuple_counts
relation P361
type Q336
type Q1190554
action count
action filter_multi_types
action find_reverse
entity Q208365
relation P361
type Q151885
type Q1190554
[ANSWER]
[[{'concept': 'Q151885'}, {'concept': 'Q1190554'}], 'P361', {'concept': 'Q336'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) ?k WHERE { { ?s property:P361 ?k . ?s rdf:type ontology:Q151885 . ?k rdf:type ontology:Q336 } UNION { ?s property:P361 ?k . ?k rdf:type ontology:Q336 . ?s rdf:type ontology:Q1190554 } } GROUP BY ?k } . FILTER ( ?e = ?j ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { ?q property:P361 resource:Q208365 . { { ?q rdf:type ontology:Q151885 } UNION { ?q rdf:type ontology:Q1190554 } } } } }
materials science gender studies biochemistry natural science zoology public-key cryptography ethnomusicology labour science work-study environmental science arthropodology chemistry public finance systems theory paleobiology physics legal history carcinology entomology mechanical engineering algorithmics arachnology cultural studies Managerial finance onomastics human anatomy ornithology Zooniverse knowledge representation and reasoning medicine cheminformatics cryptographic primitive electrical engineering astronomy astrophysics word formation electrochemistry paleontological site sports science physical geography security engineering climatology neuroinformatics epidemiology
44
action count
action approx
action union
action find_reverse_tuple_counts
relation part of
type science
type concept
action find_reverse_tuple_counts
relation part of
type science
type event
action count
action filter_multi_types
action find_reverse
entity ethnomusicology
relation part of
type concept
type event
[[{'concept': 'concept'}, {'concept': 'event'}], 'part of', {'concept': 'science'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) ?k WHERE { { ?s property:part_of ?k . ?s rdf:type ontology:concept . ?k rdf:type ontology:science } UNION { ?s property:part_of ?k . ?k rdf:type ontology:science . ?s rdf:type ontology:event } } GROUP BY ?k } . FILTER ( ?e = ?j ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { ?q property:part_of resource:ethnomusicology . { { ?q rdf:type ontology:concept } UNION { ?q rdf:type ontology:event } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q439767
P69
Q163740
USER
Which nonprofit organization was Shannon Lucio educated at ?
(Q439767,P69,c(Q163740))
action filter_type
action find
entity Q439767
relation P69
type Q163740
['Q439767', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?v WHERE { resource:Q439767 property:P69 ?v . ?v rdf:type ontology:Q163740 }
Shannon Lucio
action filter_type
action find
entity Shannon Lucio
relation educated at
type nonprofit organization
['Shannon Lucio', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?v WHERE { resource:Shannon_Lucio property:educated_at ?v . ?v rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q4614
SYSTEM
University of Southern California
Q4614
(Q439767,P69,c(Q163740))
action filter_type
action find
entity Q439767
relation P69
type Q163740
Shannon Lucio was educated by [ANSWER]
['Q439767', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?v WHERE { resource:Q439767 property:P69 ?v . ?v rdf:type ontology:Q163740 }
University of Southern California
Shannon Lucio was educated by University of Southern California
University of Southern California
action filter_type
action find
entity Shannon Lucio
relation educated at
type nonprofit organization
['Shannon Lucio', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?v WHERE { resource:Shannon_Lucio property:educated_at ?v . ?v rdf:type ontology:nonprofit_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4614
P17
Q15617994
USER
Which administrative territory does that nonprofit organization belong to ?
(Q4614,P17,c(Q15617994))
action filter_type
action find
entity Q4614
relation P17
type Q15617994
['Q4614', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q4614 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
University of Southern California
action filter_type
action find
entity University of Southern California
relation country
type designation for an administrative territorial entity
['University of Southern California', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:University_of_Southern_California property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q4614,P17,c(Q15617994))
action filter_type
action find
entity Q4614
relation P17
type Q15617994
That nonprofit organization belongs to the [ANSWER]
['Q4614', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q4614 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
United States of America
That nonprofit organization belongs to the United States of America
United States of America
action filter_type
action find
entity University of Southern California
relation country
type designation for an administrative territorial entity
['University of Southern California', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:University_of_Southern_California property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4614
P98
Q21114848
USER
What was edited by that nonprofit organization ?
(c(Q21114848),P98,Q30)
action filter_type
action find_reverse
entity Q4614
relation P98
type Q21114848
[{'concept': 'Q21114848'}, 'P98', 'Q30']
SELECT DISTINCT ?r WHERE { ?r property:P98 resource:Q4614 . ?r rdf:type ontology:Q21114848 }
University of Southern California
action filter_type
action find_reverse
entity University of Southern California
relation editor
type magazine genre
[{'concept': 'magazine genre'}, 'editor', 'United States of America']
SELECT DISTINCT ?r WHERE { ?r property:editor resource:University_of_Southern_California . ?r rdf:type ontology:magazine_genre }
[]
magazine genre
Q7122621
SYSTEM
Pacific Philosophical Quarterly
Q7122621
(c(Q21114848),P98,Q30)
action filter_type
action find_reverse
entity Q4614
relation P98
type Q21114848
[ANSWER] was edited by that nonprofit organization
[{'concept': 'Q21114848'}, 'P98', 'Q30']
SELECT DISTINCT ?r WHERE { ?r property:P98 resource:Q4614 . ?r rdf:type ontology:Q21114848 }
Pacific Philosophical Quarterly
Pacific Philosophical Quarterly was edited by that nonprofit organization
Pacific Philosophical Quarterly
action filter_type
action find_reverse
entity University of Southern California
relation editor
type magazine genre
[{'concept': 'magazine genre'}, 'editor', 'United States of America']
SELECT DISTINCT ?r WHERE { ?r property:editor resource:University_of_Southern_California . ?r rdf:type ontology:magazine_genre }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q11190
P366
Q336 Q6671777 Q9332
USER
How many sciences are the main uses of lesser number of structures or behaviors than medicine ?
(c(Q6671777)|c(Q9332),P366,c(Q336))
action count
action less
action union
action find_reverse_tuple_counts
relation P366
type Q336
type Q6671777
action find_reverse_tuple_counts
relation P366
type Q336
type Q9332
action count
action filter_multi_types
action find_reverse
entity Q11190
relation P366
type Q6671777
type Q9332
[[{'concept': 'Q6671777'}, {'concept': 'Q9332'}], 'P366', {'concept': 'Q336'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) ?k WHERE { { ?k rdf:type ontology:Q336 . ?f rdf:type ontology:Q6671777 . ?f property:P366 ?k } UNION { ?k rdf:type ontology:Q336 . ?f rdf:type ontology:Q9332 . ?f property:P366 ?k } } GROUP BY ?k } . FILTER ( ?g < ?o ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { { ?i rdf:type ontology:Q6671777 } UNION { ?i rdf:type ontology:Q9332 } } . ?i property:P366 resource:Q11190 } } }
medicine
action count
action less
action union
action find_reverse_tuple_counts
relation use
type science
type structure
action find_reverse_tuple_counts
relation use
type science
type behavior
action count
action filter_multi_types
action find_reverse
entity medicine
relation use
type structure
type behavior
[[{'concept': 'structure'}, {'concept': 'behavior'}], 'use', {'concept': 'science'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) ?k WHERE { { ?k rdf:type ontology:science . ?f rdf:type ontology:structure . ?f property:use ?k } UNION { ?k rdf:type ontology:science . ?f rdf:type ontology:behavior . ?f property:use ?k } } GROUP BY ?k } . FILTER ( ?g < ?o ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { { ?i rdf:type ontology:structure } UNION { ?i rdf:type ontology:behavior } } . ?i property:use resource:medicine } } }
[]
science structure behavior
SYSTEM
9
Q182557 Q7877 Q43035 Q1420050 Q333 Q101333 Q395 Q413 Q2329
(c(Q6671777)|c(Q9332),P366,c(Q336))
action count
action less
action union
action find_reverse_tuple_counts
relation P366
type Q336
type Q6671777
action find_reverse_tuple_counts
relation P366
type Q336
type Q9332
action count
action filter_multi_types
action find_reverse
entity Q11190
relation P366
type Q6671777
type Q9332
[ANSWER]
[[{'concept': 'Q6671777'}, {'concept': 'Q9332'}], 'P366', {'concept': 'Q336'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) ?k WHERE { { ?k rdf:type ontology:Q336 . ?f rdf:type ontology:Q6671777 . ?f property:P366 ?k } UNION { ?k rdf:type ontology:Q336 . ?f rdf:type ontology:Q9332 . ?f property:P366 ?k } } GROUP BY ?k } . FILTER ( ?g < ?o ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { { ?i rdf:type ontology:Q6671777 } UNION { ?i rdf:type ontology:Q9332 } } . ?i property:P366 resource:Q11190 } } }
computational linguistics electrochemistry electrical engineering fisheries science astronomy mechanical engineering mathematics physics chemistry
9
action count
action less
action union
action find_reverse_tuple_counts
relation use
type science
type structure
action find_reverse_tuple_counts
relation use
type science
type behavior
action count
action filter_multi_types
action find_reverse
entity medicine
relation use
type structure
type behavior
[[{'concept': 'structure'}, {'concept': 'behavior'}], 'use', {'concept': 'science'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) ?k WHERE { { ?k rdf:type ontology:science . ?f rdf:type ontology:structure . ?f property:use ?k } UNION { ?k rdf:type ontology:science . ?f rdf:type ontology:behavior . ?f property:use ?k } } GROUP BY ?k } . FILTER ( ?g < ?o ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { { ?i rdf:type ontology:structure } UNION { ?i rdf:type ontology:behavior } } . ?i property:use resource:medicine } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q15617994 Q838948 Q340169
USER
Which administrative territories are expressed in min number of works of art or medias ?
(c(Q838948)|c(Q340169),P180,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?t ) { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?f ) WHERE { { ?y property:P180 ?b . ?y rdf:type ontology:Q838948 . ?b rdf:type ontology:Q15617994 } UNION { ?y property:P180 ?b . ?b rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q340169 } } GROUP BY ?b } } . { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?d ) WHERE { { ?p property:P180 ?z . ?z rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q838948 } UNION { ?z rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q340169 . ?p property:P180 ?z } } GROUP BY ?z } . FILTER ( ?d = ?t ) }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type media
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?t ) { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?f ) WHERE { { ?y property:depicts ?b . ?y rdf:type ontology:work_of_art . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?y property:depicts ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:media } } GROUP BY ?b } } . { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?d ) WHERE { { ?p property:depicts ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:work_of_art } UNION { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:media . ?p property:depicts ?z } } GROUP BY ?z } . FILTER ( ?d = ?t ) }
[]
designation for an administrative territorial entity work of art media
Q38 Q155 Q159
SYSTEM
Italy, Brazil, Russia
Q3883 Q1256 Q1462 Q241744 Q668 Q142 Q55 Q47505 Q148 Q128081 Q131596 Q712 Q711 Q243467 Q72672 Q1460 Q660687 Q159 Q41 Q155 Q794 Q160262 Q243128 Q254356 Q15260970 Q822 Q532 Q11343 Q268214 Q13376 Q12594 Q34 Q928 Q39 Q38 Q858 Q199952 Q854 Q1280 Q1282 Q20 Q27 Q188315 Q29 Q7077 Q80644 Q189 Q1028 Q47821 Q12574 Q12578 Q223 Q12675 Q229 Q17 Q553347 Q551142 Q652480 Q111144 Q298 Q13320 Q186115 Q373189 Q72425 Q12657 Q1438 Q26300792 Q183366 Q6256 Q79 Q72432 Q811 Q772 Q1016 Q1273 Q1011 Q913434 Q242683 Q80563 Q376896 Q34876 Q689720 Q33788 Q12563 Q190963 Q80591 Q42288 Q1034158
(c(Q838948)|c(Q340169),P180,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
[ANSWERS] are expressed in min number of works of art or medias
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?t ) { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?f ) WHERE { { ?y property:P180 ?b . ?y rdf:type ontology:Q838948 . ?b rdf:type ontology:Q15617994 } UNION { ?y property:P180 ?b . ?b rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q340169 } } GROUP BY ?b } } . { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?d ) WHERE { { ?p property:P180 ?z . ?z rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q838948 } UNION { ?z rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q340169 . ?p property:P180 ?z } } GROUP BY ?z } . FILTER ( ?d = ?t ) }
Catanzaro Liguria Sardinia Ariccia India France Netherlands Dolo People's Republic of China Cori, Lazio farm Fiji Mongolia Subiaco Sorrento Sicily Velden am Wörther See Russia Greece Brazil Iran Caprarola Olevano Romano Murnau am Staffelsee Nantcribba Lebanon village Wetter (Ruhr) Bordighera Pistoia Marne Sweden Philippines Switzerland Italy Syria Taormina Sri Lanka Umbria Lazio Norway Ireland Porto Venere Spain Dachau Köngen Iceland Morocco Malcesine Loiret Lot-et-Garonne Greenland Oise Cyprus Japan Kobern-Gondorf Wartenberg Kennemerland Canossa Chile Savona Montmartre Bithynia Pozzuoli Nièvre Campania Rhos Y Madoc territory country Egypt Procida Nicaragua Drenthe Libya Tuscany Cape Verde Les Halles Genzano di Roma Amalfi Grenelle province Thörl New Caledonia Landes Frascati Atrani Asola Cap Norfeu
Italy, Brazil and Russia are expressed in min number of works of art or medias
Italy Brazil Russia
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type media
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?t ) { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?f ) WHERE { { ?y property:depicts ?b . ?y rdf:type ontology:work_of_art . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?y property:depicts ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:media } } GROUP BY ?b } } . { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?d ) WHERE { { ?p property:depicts ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:work_of_art } UNION { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:media . ?p property:depicts ?z } } GROUP BY ?z } . FILTER ( ?d = ?t ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7910849 Q439767
P161
Q838948
USER
Which works of art stars Shannon Lucio or Valentina Bassi as actor ?
OR((c(Q838948),P161,Q439767), (c(Q838948),P161,Q7910849))
action filter_type
action union
action find_reverse
entity Q439767
relation P161
action find_reverse
entity Q7910849
relation P161
type Q838948
{'OR': [[{'concept': 'Q838948'}, 'P161', 'Q439767'], [{'concept': 'Q838948'}, 'P161', 'Q7910849']]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?m ) { ( resource:Q7910849 ) ( resource:Q439767 ) } . ?i property:P161 ?m } . ?i rdf:type ontology:Q838948 }
Valentina Bassi Shannon Lucio
action filter_type
action union
action find_reverse
entity Shannon Lucio
relation cast member
action find_reverse
entity Valentina Bassi
relation cast member
type work of art
{'OR': [[{'concept': 'work of art'}, 'cast member', 'Shannon Lucio'], [{'concept': 'work of art'}, 'cast member', 'Valentina Bassi']]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?m ) { ( resource:Valentina_Bassi ) ( resource:Shannon_Lucio ) } . ?i property:cast_member ?m } . ?i rdf:type ontology:work_of_art }
[]
work of art
Q4655928 Q148387 Q4657999 Q7735785 Q18153132 Q5222196 Q5592084 Q230496
SYSTEM
A Chrysanthemum Bursts in Cincoesquinas, Feast of Love, A Lucky Day, The Gap, The Perfect Guy, Todas las azafatas van al cielo, Graduation, Fireflies in the Garden
Q4655928 Q148387 Q4657999 Q7735785 Q18153132 Q5222196 Q5592084 Q230496
OR((c(Q838948),P161,Q439767), (c(Q838948),P161,Q7910849))
action filter_type
action union
action find_reverse
entity Q439767
relation P161
action find_reverse
entity Q7910849
relation P161
type Q838948
[ANSWERS] star Shannon Lucio or Valentina Bassi as actor
{'OR': [[{'concept': 'Q838948'}, 'P161', 'Q439767'], [{'concept': 'Q838948'}, 'P161', 'Q7910849']]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?m ) { ( resource:Q7910849 ) ( resource:Q439767 ) } . ?i property:P161 ?m } . ?i rdf:type ontology:Q838948 }
A Chrysanthemum Bursts in Cincoesquinas Feast of Love A Lucky Day The Gap The Perfect Guy Todas las azafatas van al cielo Graduation Fireflies in the Garden
A Chrysanthemum Bursts in Cincoesquinas, Feast of Love, A Lucky Day, The Gap, The Perfect Guy, Todas las azafatas van al cielo, Graduation and Fireflies in the Garden star Shannon Lucio or Valentina Bassi as actor
A Chrysanthemum Bursts in Cincoesquinas Feast of Love A Lucky Day The Gap The Perfect Guy Todas las azafatas van al cielo Graduation Fireflies in the Garden
action filter_type
action union
action find_reverse
entity Shannon Lucio
relation cast member
action find_reverse
entity Valentina Bassi
relation cast member
type work of art
{'OR': [[{'concept': 'work of art'}, 'cast member', 'Shannon Lucio'], [{'concept': 'work of art'}, 'cast member', 'Valentina Bassi']]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?m ) { ( resource:Valentina_Bassi ) ( resource:Shannon_Lucio ) } . ?i property:cast_member ?m } . ?i rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q11190
P101 P21
Q502895
USER
Which people work in the domain of medicine and have the gender as male ?
AND((c(Q502895),P101,Q11190), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q11190
relation P101
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P101', 'Q11190'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?f WHERE { ?f property:P101 resource:Q11190 . ?f property:P21 resource:Q6581097 . ?f rdf:type ontology:Q502895 }
male medicine
action filter_type
action intersection
action find_reverse
entity medicine
relation field of work
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'field of work', 'medicine'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?f WHERE { ?f property:field_of_work resource:medicine . ?f property:gender resource:male . ?f rdf:type ontology:common_name }
[]
common name
Q24249568 Q23899712 Q17156770 Q15859291 Q24249576 Q2574420 Q316996 Q21607881 Q11693118 Q7489382
SYSTEM
Some of them are James Hiley Morgan, Polikarp Puzino, Fernando Barral, André Bonnin, Richard Cater Treweeks, Wilhelm Paul Ackermann, Franciscus Sylvius, Friedrich (`Franz') Joseph Schelver, Dawid Rosenthal, Sharaf al-Zaman al-Marwazi
Q16331435 Q2541804 Q20895427 Q1395668 Q17156770 Q367689 Q2246926 Q15859291 Q7489382 Q24249576 Q316996 Q12874515 Q21607881 Q1349693 Q23899712 Q2574420 Q15441489 Q11693118 Q4505671 Q16204233 Q24249568 Q16061989
AND((c(Q502895),P101,Q11190), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q11190
relation P101
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] work in the domain of medicine and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P101', 'Q11190'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?f WHERE { ?f property:P101 resource:Q11190 . ?f property:P21 resource:Q6581097 . ?f rdf:type ontology:Q502895 }
Konstantinos Mavrogiannis Giovanni Filippo Ingrassia Lluís Góngora i Joanicó Ibn Abi Usaibia Fernando Barral Adriaan van Royen Roel Coutinho André Bonnin Sharaf al-Zaman al-Marwazi Richard Cater Treweeks Franciscus Sylvius Vasilios Papavasiliou Friedrich (`Franz') Joseph Schelver Melchior Adam Weikard Polikarp Puzino Wilhelm Paul Ackermann Aaron McDuffie Moore Dawid Rosenthal Otto-August-Hermann Zilchert Otto Porges James Hiley Morgan Aristotelis Kouzis
James Hiley Morgan, Polikarp Puzino, Fernando Barral, André Bonnin, Richard Cater Treweeks, Wilhelm Paul Ackermann, Franciscus Sylvius, Friedrich (`Franz') Joseph Schelver, Dawid Rosenthal and Sharaf al-Zaman al-Marwazi work in the domain of medicine and have the gender as male
James Hiley Morgan Polikarp Puzino Fernando Barral André Bonnin Richard Cater Treweeks Wilhelm Paul Ackermann Franciscus Sylvius Friedrich (`Franz') Joseph Schelver Dawid Rosenthal Sharaf al-Zaman al-Marwazi
action filter_type
action intersection
action find_reverse
entity medicine
relation field of work
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'field of work', 'medicine'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?f WHERE { ?f property:field_of_work resource:medicine . ?f property:gender resource:male . ?f rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q22344574 Q15859291
P119
Q39614
USER
Which cemeteries are the resting place of André Bonnin or Wilhelm Koch ?
OR((Q15859291,P119,c(Q39614)), (Q22344574,P119,c(Q39614)))
action filter_type
action union
action find
entity Q15859291
relation P119
action find
entity Q22344574
relation P119
type Q39614
{'OR': [['Q15859291', 'P119', {'concept': 'Q39614'}], ['Q22344574', 'P119', {'concept': 'Q39614'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?e ) { ( resource:Q15859291 ) ( resource:Q22344574 ) } . ?e property:P119 ?w } . ?w rdf:type ontology:Q39614 }
Wilhelm Koch André Bonnin
action filter_type
action union
action find
entity André Bonnin
relation place of burial
action find
entity Wilhelm Koch
relation place of burial
type cemetery
{'OR': [['André Bonnin', 'place of burial', {'concept': 'cemetery'}], ['Wilhelm Koch', 'place of burial', {'concept': 'cemetery'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?e ) { ( resource:André_Bonnin ) ( resource:Wilhelm_Koch ) } . ?e property:place_of_burial ?w } . ?w rdf:type ontology:cemetery }
[]
cemetery
Q883970 Q311
SYSTEM
Melaten-Friedhof, Père Lachaise Cemetery
Q883970 Q311
OR((Q15859291,P119,c(Q39614)), (Q22344574,P119,c(Q39614)))
action filter_type
action union
action find
entity Q15859291
relation P119
action find
entity Q22344574
relation P119
type Q39614
[ANSWERS] are the resting place of André Bonnin or Wilhelm Koch
{'OR': [['Q15859291', 'P119', {'concept': 'Q39614'}], ['Q22344574', 'P119', {'concept': 'Q39614'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?e ) { ( resource:Q15859291 ) ( resource:Q22344574 ) } . ?e property:P119 ?w } . ?w rdf:type ontology:Q39614 }
Melaten-Friedhof Père Lachaise Cemetery
Melaten-Friedhof and Père Lachaise Cemetery are the resting place of André Bonnin or Wilhelm Koch
Melaten-Friedhof Père Lachaise Cemetery
action filter_type
action union
action find
entity André Bonnin
relation place of burial
action find
entity Wilhelm Koch
relation place of burial
type cemetery
{'OR': [['André Bonnin', 'place of burial', {'concept': 'cemetery'}], ['Wilhelm Koch', 'place of burial', {'concept': 'cemetery'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?e ) { ( resource:André_Bonnin ) ( resource:Wilhelm_Koch ) } . ?e property:place_of_burial ?w } . ?w rdf:type ontology:cemetery }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P669
Q79007 Q39614
USER
How many cemeteries are located on around the same number of streets as that cemetery ?
(c(Q39614),P669,c(Q79007))
[{'concept': 'Q39614'}, 'P669', {'concept': 'Q79007'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P669 ?y . ?z rdf:type ontology:Q39614 . ?y rdf:type ontology:Q79007 }
[{'concept': 'cemetery'}, 'located on street', {'concept': 'street'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:located_on_street ?y . ?z rdf:type ontology:cemetery . ?y rdf:type ontology:street }
[]
street cemetery
Comparative|Count over More/Less|Single entity type|Clarification
Q311
SYSTEM
Did you mean Père Lachaise Cemetery ?
(c(Q39614),P669,c(Q79007))
[ANSWER]
[{'concept': 'Q39614'}, 'P669', {'concept': 'Q79007'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P669 ?y . ?z rdf:type ontology:Q39614 . ?y rdf:type ontology:Q79007 }
Did you mean Père Lachaise Cemetery ?
Père Lachaise Cemetery
[{'concept': 'cemetery'}, 'located on street', {'concept': 'street'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:located_on_street ?y . ?z rdf:type ontology:cemetery . ?y rdf:type ontology:street }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Melaten-Friedhof. Could you tell me the answer for that?
(c(Q39614),P669,c(Q79007))
Q883970
[{'concept': 'Q39614'}, 'P669', {'concept': 'Q79007'}]
[{'concept': 'cemetery'}, 'located on street', {'concept': 'street'}]
[]
SYSTEM
15
Q883970 Q15411497 Q2972535 Q781858 Q1716395 Q2972508 Q2972509 Q2972678 Q884534 Q2655037 Q1092090 Q1092107 Q2750701 Q2972515 Q932782
(c(Q39614),P669,c(Q79007))
[ANSWER]
[{'concept': 'Q39614'}, 'P669', {'concept': 'Q79007'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P669 ?y . ?z rdf:type ontology:Q39614 . ?y rdf:type ontology:Q79007 }
Melaten-Friedhof Cimetière de la Villette Cimetière de Grenelle Cimetière de Charonne Jewish cemetery, Muiderberg Auteuil Cemetery Cimetière de Bercy Cimetière Parisien de la Chapelle Schönhauser Allee Jewish Cemetery Batignolles Cemetery Saint-Vincent Cemetery Passy Cemetery Cimetière du Calvaire Cimetière de Belleville Cimetière de Vaugirard
15
[{'concept': 'cemetery'}, 'located on street', {'concept': 'street'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:located_on_street ?y . ?z rdf:type ontology:cemetery . ?y rdf:type ontology:street }
[]