Simple Question (Direct)
Simple Question
Q3713906
P344
Q502895
USER
Which people serve as the director of photography for The Battle of the Sexes ?
(Q3713906,P344,c(Q502895))
action filter_type
action find
entity Q3713906
relation P344
type Q502895
['Q3713906', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q3713906 property:P344 ?i . ?i rdf:type ontology:Q502895 }
The Battle of the Sexes
action filter_type
action find
entity The Battle of the Sexes
relation director of photography
type common name
['The Battle of the Sexes', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:The_Battle_of_the_Sexes property:director_of_photography ?i . ?i rdf:type ontology:common_name }
[]
common name
Q329965 Q11321
SYSTEM
Billy Bitzer, Karl Brown
Q329965 Q11321
(Q3713906,P344,c(Q502895))
action filter_type
action find
entity Q3713906
relation P344
type Q502895
The [ANSWERS] serve as the director of photography for The Battle of the Sexes
['Q3713906', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q3713906 property:P344 ?i . ?i rdf:type ontology:Q502895 }
Billy Bitzer Karl Brown
The Billy Bitzer and Karl Brown serve as the director of photography for The Battle of the Sexes
Billy Bitzer Karl Brown
action filter_type
action find
entity The Battle of the Sexes
relation director of photography
type common name
['The Battle of the Sexes', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:The_Battle_of_the_Sexes property:director_of_photography ?i . ?i rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q329965
P19
Q852446
USER
Where was that person born ?
(Q329965,P19,c(Q852446))
action filter_type
action find
entity Q329965
relation P19
type Q852446
['Q329965', 'P19', {'concept': 'Q852446'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q852446 . resource:Q329965 property:P19 ?k }
Billy Bitzer
action filter_type
action find
entity Billy Bitzer
relation place of birth
type administrative territorial entity of the United States
['Billy Bitzer', 'place of birth', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity_of_the_United_States . resource:Billy_Bitzer property:place_of_birth ?k }
[]
administrative territorial entity of the United States
Clarification for simple ques.
Q329965
SYSTEM
Did you mean Billy Bitzer ?
Q329965 Q11321
(Q329965,P19,c(Q852446)) (Q11321,P19,c(Q852446))
[ANSWER]
['Q329965', 'P19', {'concept': 'Q852446'}] ['Q11321', 'P19', {'concept': 'Q852446'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q852446 . resource:Q329965 property:P19 ?k }
Billy Bitzer Karl Brown
Did you mean Billy Bitzer ?
Billy Bitzer
['Billy Bitzer', 'place of birth', {'concept': 'administrative territorial entity of the United States'}] ['Karl Brown', 'place of birth', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity_of_the_United_States . resource:Billy_Bitzer property:place_of_birth ?k }
[]
Simple Question (Coreferenced)
USER
Yes
(Q329965,P19,c(Q852446))
['Q329965', 'P19', {'concept': 'Q852446'}]
['Billy Bitzer', 'place of birth', {'concept': 'administrative territorial entity of the United States'}]
[]
Q771
SYSTEM
Massachusetts
Q771
(Q329965,P19,c(Q852446))
action filter_type
action find
entity Q329965
relation P19
type Q852446
That person was born in [ANSWER]
['Q329965', 'P19', {'concept': 'Q852446'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q852446 . resource:Q329965 property:P19 ?k }
Massachusetts
That person was born in Massachusetts
Massachusetts
action filter_type
action find
entity Billy Bitzer
relation place of birth
type administrative territorial entity of the United States
['Billy Bitzer', 'place of birth', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity_of_the_United_States . resource:Billy_Bitzer property:place_of_birth ?k }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P163
Q17335294 Q852446
USER
Which US administrative territories are associated with more number of coats of arms than that US administrative territory ?
(c(Q852446),P163,c(Q17335294))
action greater
action find_tuple_counts
relation P163
type Q852446
type Q17335294
action count
action filter_type
action find
entity Q771
relation P163
type Q852446
[{'concept': 'Q852446'}, 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?o ) WHERE { ?e rdf:type ontology:Q17335294 . ?f rdf:type ontology:Q852446 . ?f property:P163 ?e } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { resource:Q771 property:P163 ?j . ?j rdf:type ontology:Q852446 } } . FILTER ( ?o > ?l ) }
action greater
action find_tuple_counts
relation flag
type administrative territorial entity of the United States
type flag or coat of arms
action count
action filter_type
action find
entity Massachusetts
relation flag
type administrative territorial entity of the United States
[{'concept': 'administrative territorial entity of the United States'}, 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?o ) WHERE { ?e rdf:type ontology:flag_or_coat_of_arms . ?f rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?f property:flag ?e } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { resource:Massachusetts property:flag ?j . ?j rdf:type ontology:administrative_territorial_entity_of_the_United_States } } . FILTER ( ?o > ?l ) }
[]
flag or coat of arms administrative territorial entity of the United States
Q1527 Q1397 Q1204
SYSTEM
Minnesota, Ohio, Illinois
Q1397 Q43421 Q1393 Q1391 Q1581 Q28515 Q829 Q1527 Q1204 Q1227 Q1223 Q1221 Q1207 Q812 Q1371 Q779 Q1553
(c(Q852446),P163,c(Q17335294))
action greater
action find_tuple_counts
relation P163
type Q852446
type Q17335294
action count
action filter_type
action find
entity Q771
relation P163
type Q852446
[ANSWERS] are associated with more number of coats of arms than that US administrative territory
[{'concept': 'Q852446'}, 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?o ) WHERE { ?e rdf:type ontology:Q17335294 . ?f rdf:type ontology:Q852446 . ?f property:P163 ?e } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { resource:Q771 property:P163 ?j . ?j rdf:type ontology:Q852446 } } . FILTER ( ?o > ?l ) }
Ohio Richmond Delaware Maryland Missouri Springfield Utah Minnesota Illinois Nevada Washington Idaho North Dakota Florida West Virginia Connecticut Nebraska
Minnesota, Ohio and Illinois are associated with more number of coats of arms than that US administrative territory
Minnesota Ohio Illinois
action greater
action find_tuple_counts
relation flag
type administrative territorial entity of the United States
type flag or coat of arms
action count
action filter_type
action find
entity Massachusetts
relation flag
type administrative territorial entity of the United States
[{'concept': 'administrative territorial entity of the United States'}, 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?o ) WHERE { ?e rdf:type ontology:flag_or_coat_of_arms . ?f rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?f property:flag ?e } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { resource:Massachusetts property:flag ?j . ?j rdf:type ontology:administrative_territorial_entity_of_the_United_States } } . FILTER ( ?o > ?l ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1166
P47
Q852446
USER
Are Michigan bordered by those ones ?
(Q1166,P47,Q1527) (Q1166,P47,Q1397) (Q1166,P47,Q1204)
action is_in
entity prev_answer
action find
entity Q1166
relation P47
['Q1166', 'P47', 'Q1527'] ['Q1166', 'P47', 'Q1397'] ['Q1166', 'P47', 'Q1204']
ASK WHERE { resource:Q1166 property:P47 ?r . VALUES ( ?r ) { ( resource:Q1397 ) ( resource:Q43421 ) ( resource:Q1393 ) } }
Michigan
action is_in
entity prev_answer
action find
entity Michigan
relation shares border with
['Michigan', 'shares border with', 'Minnesota'] ['Michigan', 'shares border with', 'Ohio'] ['Michigan', 'shares border with', 'Illinois']
ASK WHERE { resource:Michigan property:shares_border_with ?r . VALUES ( ?r ) { ( resource:Ohio ) ( resource:Richmond ) ( resource:Delaware ) } }
[]
administrative territorial entity of the United States
SYSTEM
YES
(Q1166,P47,Q1527) (Q1166,P47,Q1397) (Q1166,P47,Q1204)
action is_in
entity prev_answer
action find
entity Q1166
relation P47
[ANSWER]
['Q1166', 'P47', 'Q1527'] ['Q1166', 'P47', 'Q1397'] ['Q1166', 'P47', 'Q1204']
ASK WHERE { resource:Q1166 property:P47 ?r . VALUES ( ?r ) { ( resource:Q1397 ) ( resource:Q43421 ) ( resource:Q1393 ) } }
Yes
action is_in
entity prev_answer
action find
entity Michigan
relation shares border with
['Michigan', 'shares border with', 'Minnesota'] ['Michigan', 'shares border with', 'Ohio'] ['Michigan', 'shares border with', 'Illinois']
ASK WHERE { resource:Michigan property:shares_border_with ?r . VALUES ( ?r ) { ( resource:Ohio ) ( resource:Richmond ) ( resource:Delaware ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1527
P47
Q15617994
USER
How many administrative territories share the border with Minnesota ?
(Q1527,P47,c(Q15617994))
action count
action filter_type
action find
entity Q1527
relation P47
type Q15617994
['Q1527', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { resource:Q1527 property:P47 ?y . ?y rdf:type ontology:Q15617994 }
Minnesota
action count
action filter_type
action find
entity Minnesota
relation shares border with
type designation for an administrative territorial entity
['Minnesota', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { resource:Minnesota property:shares_border_with ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
4
Q1904 Q1948 Q2007 Q603676
(Q1527,P47,c(Q15617994))
action count
action filter_type
action find
entity Q1527
relation P47
type Q15617994
[ANSWER]
['Q1527', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { resource:Q1527 property:P47 ?y . ?y rdf:type ontology:Q15617994 }
Ontario Manitoba Northwest Territories District of Keewatin
4
action count
action filter_type
action find
entity Minnesota
relation shares border with
type designation for an administrative territorial entity
['Minnesota', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { resource:Minnesota property:shares_border_with ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q771
P6
Q502895
USER
Which person has Massachusetts as its head of government ?
(Q771,P6,c(Q502895))
action filter_type
action find
entity Q771
relation P6
type Q502895
['Q771', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q771 property:P6 ?a . ?a rdf:type ontology:Q502895 }
Massachusetts
action filter_type
action find
entity Massachusetts
relation head of government
type common name
['Massachusetts', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Massachusetts property:head_of_government ?a . ?a rdf:type ontology:common_name }
[]
common name
Q5076629
SYSTEM
Charlie Baker
Q5076629
(Q771,P6,c(Q502895))
action filter_type
action find
entity Q771
relation P6
type Q502895
[ANSWER] has Massachusetts as its head of government
['Q771', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q771 property:P6 ?a . ?a rdf:type ontology:Q502895 }
Charlie Baker
Charlie Baker has Massachusetts as its head of government
Charlie Baker
action filter_type
action find
entity Massachusetts
relation head of government
type common name
['Massachusetts', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Massachusetts property:head_of_government ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q538302
Q502895
USER
And also tell me about Aielo de Rugat?
(Q538302,P6,c(Q502895))
action filter_type
action find
entity Q538302
relation P6
type Q502895
['Q538302', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q538302 property:P6 ?t . ?t rdf:type ontology:Q502895 }
Aielo de Rugat
action filter_type
action find
entity Aielo de Rugat
relation head of government
type common name
['Aielo de Rugat', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Aielo_de_Rugat property:head_of_government ?t . ?t rdf:type ontology:common_name }
[]
common name
Q14133962
SYSTEM
Jaime Soler Todoli
Q14133962
(Q538302,P6,c(Q502895))
action filter_type
action find
entity Q538302
relation P6
type Q502895
[ANSWER]
['Q538302', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q538302 property:P6 ?t . ?t rdf:type ontology:Q502895 }
Jaime Soler Todoli
Jaime Soler Todoli
action filter_type
action find
entity Aielo de Rugat
relation head of government
type common name
['Aielo de Rugat', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Aielo_de_Rugat property:head_of_government ?t . ?t rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1527
P740
Q43229 Q2088357
USER
How many organizations and musical ensembles originated at Minnesota ?
(c(Q43229),P740,Q1527) (c(Q2088357),P740,Q1527)
action count
action union
action filter_type
action find_reverse
entity Q1527
relation P740
type Q43229
action filter_type
action find_reverse
entity Q1527
relation P740
type Q2088357
[{'concept': 'Q43229'}, 'P740', 'Q1527'] [{'concept': 'Q2088357'}, 'P740', 'Q1527']
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { ?c property:P740 resource:Q1527 . ?c rdf:type ontology:Q43229 } UNION { ?c property:P740 resource:Q1527 . ?c rdf:type ontology:Q2088357 } }
Minnesota
action count
action union
action filter_type
action find_reverse
entity Minnesota
relation location of formation
type organization
action filter_type
action find_reverse
entity Minnesota
relation location of formation
type musical ensemble
[{'concept': 'organization'}, 'location of formation', 'Minnesota'] [{'concept': 'musical ensemble'}, 'location of formation', 'Minnesota']
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { ?c property:location_of_formation resource:Minnesota . ?c rdf:type ontology:organization } UNION { ?c property:location_of_formation resource:Minnesota . ?c rdf:type ontology:musical_ensemble } }
[]
organization musical ensemble
SYSTEM
1 organizations and 3 musical ensembles
Q7646442 Q5230411 Q25056210 Q5057924
(c(Q43229),P740,Q1527) (c(Q2088357),P740,Q1527)
action count
action union
action filter_type
action find_reverse
entity Q1527
relation P740
type Q43229
action filter_type
action find_reverse
entity Q1527
relation P740
type Q2088357
[ANSWER]
[{'concept': 'Q43229'}, 'P740', 'Q1527'] [{'concept': 'Q2088357'}, 'P740', 'Q1527']
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { ?c property:P740 resource:Q1527 . ?c rdf:type ontology:Q43229 } UNION { ?c property:P740 resource:Q1527 . ?c rdf:type ontology:Q2088357 } }
Surly Bikes David & Carr Torn Celestiial
1 organizations and 3 musical ensembles
action count
action union
action filter_type
action find_reverse
entity Minnesota
relation location of formation
type organization
action filter_type
action find_reverse
entity Minnesota
relation location of formation
type musical ensemble
[{'concept': 'organization'}, 'location of formation', 'Minnesota'] [{'concept': 'musical ensemble'}, 'location of formation', 'Minnesota']
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { ?c property:location_of_formation resource:Minnesota . ?c rdf:type ontology:organization } UNION { ?c property:location_of_formation resource:Minnesota . ?c rdf:type ontology:musical_ensemble } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1415
P840
Q852446 Q2342494 Q15416
USER
How many US administrative territories are less number of collectables or television programs set in than Indiana ?
(c(Q2342494)|c(Q15416),P840,c(Q852446))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q852446
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q1415
relation P840
type Q2342494
type Q15416
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?c ) WHERE { { ?t rdf:type ontology:Q852446 . ?q rdf:type ontology:Q2342494 . ?q property:P840 ?t } UNION { ?t rdf:type ontology:Q852446 . ?q rdf:type ontology:Q15416 . ?q property:P840 ?t } } GROUP BY ?t } . FILTER ( ?c < ?k ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { ?i property:P840 resource:Q1415 . { VALUES ( ?d ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } . ?i rdf:type ?d } } } }
Indiana
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type television program
action count
action filter_multi_types
action find_reverse
entity Indiana
relation narrative location
type collectable
type television program
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?c ) WHERE { { ?t rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?q rdf:type ontology:collectable . ?q property:narrative_location ?t } UNION { ?t rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?q rdf:type ontology:television_program . ?q property:narrative_location ?t } } GROUP BY ?t } . FILTER ( ?c < ?k ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { ?i property:narrative_location resource:Indiana . { VALUES ( ?d ) { ( ontology:collectable ) ( ontology:television_program ) } . ?i rdf:type ?d } } } }
[]
administrative territorial entity of the United States collectable television program
SYSTEM
8
Q1397 Q7886863 Q782 Q1204 Q759 Q14710458 Q4705487 Q16551
(c(Q2342494)|c(Q15416),P840,c(Q852446))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q852446
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q1415
relation P840
type Q2342494
type Q15416
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?c ) WHERE { { ?t rdf:type ontology:Q852446 . ?q rdf:type ontology:Q2342494 . ?q property:P840 ?t } UNION { ?t rdf:type ontology:Q852446 . ?q rdf:type ontology:Q15416 . ?q property:P840 ?t } } GROUP BY ?t } . FILTER ( ?c < ?k ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { ?i property:P840 resource:Q1415 . { VALUES ( ?d ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } . ?i rdf:type ?d } } } }
Ohio Unionville Hawaii Illinois New Hampshire Esperanza Aladdin, Wyoming Vermont
8
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type television program
action count
action filter_multi_types
action find_reverse
entity Indiana
relation narrative location
type collectable
type television program
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?c ) WHERE { { ?t rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?q rdf:type ontology:collectable . ?q property:narrative_location ?t } UNION { ?t rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?q rdf:type ontology:television_program . ?q property:narrative_location ?t } } GROUP BY ?t } . FILTER ( ?c < ?k ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { ?i property:narrative_location resource:Indiana . { VALUES ( ?d ) { ( ontology:collectable ) ( ontology:television_program ) } . ?i rdf:type ?d } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q816
P840
Q852446 Q2342494 Q15416
USER
And how about Arizona?
(c(Q2342494)|c(Q15416),P840,c(Q852446))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q852446
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q816
relation P840
type Q2342494
type Q15416
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?r WHERE { { ?j property:P840 ?r . ?r rdf:type ontology:Q852446 . ?j rdf:type ontology:Q2342494 } UNION { ?j property:P840 ?r . ?r rdf:type ontology:Q852446 . ?j rdf:type ontology:Q15416 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o property:P840 resource:Q816 . { ?o rdf:type ?x . VALUES ( ?x ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?s < ?f ) }
Arizona
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type television program
action count
action filter_multi_types
action find_reverse
entity Arizona
relation narrative location
type collectable
type television program
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?r WHERE { { ?j property:narrative_location ?r . ?r rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?j rdf:type ontology:collectable } UNION { ?j property:narrative_location ?r . ?r rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?j rdf:type ontology:television_program } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o property:narrative_location resource:Arizona . { ?o rdf:type ?x . VALUES ( ?x ) { ( ontology:television_program ) ( ontology:collectable ) } } } } . FILTER ( ?s < ?f ) }
[]
administrative territorial entity of the United States collectable television program
SYSTEM
33
Q1397 Q43421 Q829 Q1603 Q1391 Q7886863 Q5000330 Q1581 Q1612 Q1454 Q1384 Q3474463 Q1415 Q782 Q1546 Q1204 Q1227 Q1223 Q1166 Q1207 Q1509 Q1371 Q1261 Q1428 Q38555 Q759 Q1558 Q14710458 Q1588 Q523606 Q4705487 Q1212 Q16551
(c(Q2342494)|c(Q15416),P840,c(Q852446))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q852446
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q816
relation P840
type Q2342494
type Q15416
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?r WHERE { { ?j property:P840 ?r . ?r rdf:type ontology:Q852446 . ?j rdf:type ontology:Q2342494 } UNION { ?j property:P840 ?r . ?r rdf:type ontology:Q852446 . ?j rdf:type ontology:Q15416 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o property:P840 resource:Q816 . { ?o rdf:type ?x . VALUES ( ?x ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?s < ?f ) }
Ohio Richmond Utah Kentucky Maryland Unionville Burr Oak, Iowa Missouri Arkansas North Carolina New York South Troy Indiana Hawaii Iowa Illinois Nevada Washington Michigan North Dakota Tennessee West Virginia Colorado Georgia Santa Fe New Hampshire Kansas Esperanza Louisiana Langley Aladdin, Wyoming Montana Vermont
33
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type television program
action count
action filter_multi_types
action find_reverse
entity Arizona
relation narrative location
type collectable
type television program
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?r WHERE { { ?j property:narrative_location ?r . ?r rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?j rdf:type ontology:collectable } UNION { ?j property:narrative_location ?r . ?r rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?j rdf:type ontology:television_program } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o property:narrative_location resource:Arizona . { ?o rdf:type ?x . VALUES ( ?x ) { ( ontology:television_program ) ( ontology:collectable ) } } } } . FILTER ( ?s < ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q263241
P941
Q502895 Q15416 Q6619679
USER
How many people were more number of television programs or fictional humanoids inspired by than Mary Wickes ?
(c(Q15416)|c(Q6619679),P941,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15416
action find_reverse_tuple_counts
relation P941
type Q502895
type Q6619679
action count
action filter_multi_types
action find_reverse
entity Q263241
relation P941
type Q15416
type Q6619679
[[{'concept': 'Q15416'}, {'concept': 'Q6619679'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?s WHERE { { ?u property:P941 ?s . ?s rdf:type ontology:Q502895 . ?u rdf:type ontology:Q15416 } UNION { ?s rdf:type ontology:Q502895 . ?u rdf:type ontology:Q6619679 . ?u property:P941 ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { ?j property:P941 resource:Q263241 . { { ?j rdf:type ontology:Q15416 } UNION { ?j rdf:type ontology:Q6619679 } } } } . FILTER ( ?a > ?z ) }
Mary Wickes
action count
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type television program
action find_reverse_tuple_counts
relation inspired by
type common name
type fictional humanoid
action count
action filter_multi_types
action find_reverse
entity Mary Wickes
relation inspired by
type television program
type fictional humanoid
[[{'concept': 'television program'}, {'concept': 'fictional humanoid'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?s WHERE { { ?u property:inspired_by ?s . ?s rdf:type ontology:common_name . ?u rdf:type ontology:television_program } UNION { ?s rdf:type ontology:common_name . ?u rdf:type ontology:fictional_humanoid . ?u property:inspired_by ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { ?j property:inspired_by resource:Mary_Wickes . { { ?j rdf:type ontology:television_program } UNION { ?j rdf:type ontology:fictional_humanoid } } } } . FILTER ( ?a > ?z ) }
[]
common name television program fictional humanoid
SYSTEM
4
Q2907490 Q5675905 Q22686 Q2409128
(c(Q15416)|c(Q6619679),P941,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15416
action find_reverse_tuple_counts
relation P941
type Q502895
type Q6619679
action count
action filter_multi_types
action find_reverse
entity Q263241
relation P941
type Q15416
type Q6619679
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q6619679'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?s WHERE { { ?u property:P941 ?s . ?s rdf:type ontology:Q502895 . ?u rdf:type ontology:Q15416 } UNION { ?s rdf:type ontology:Q502895 . ?u rdf:type ontology:Q6619679 . ?u property:P941 ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { ?j property:P941 resource:Q263241 . { { ?j rdf:type ontology:Q15416 } UNION { ?j rdf:type ontology:Q6619679 } } } } . FILTER ( ?a > ?z ) }
Bo Gritz Andrés López Muñoz Donald Trump Dušan Popov
4
action count
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type television program
action find_reverse_tuple_counts
relation inspired by
type common name
type fictional humanoid
action count
action filter_multi_types
action find_reverse
entity Mary Wickes
relation inspired by
type television program
type fictional humanoid
[[{'concept': 'television program'}, {'concept': 'fictional humanoid'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?s WHERE { { ?u property:inspired_by ?s . ?s rdf:type ontology:common_name . ?u rdf:type ontology:television_program } UNION { ?s rdf:type ontology:common_name . ?u rdf:type ontology:fictional_humanoid . ?u property:inspired_by ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { ?j property:inspired_by resource:Mary_Wickes . { { ?j rdf:type ontology:television_program } UNION { ?j rdf:type ontology:fictional_humanoid } } } } . FILTER ( ?a > ?z ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1428
P840
Q852446 Q838948 Q2342494
USER
How many US administrative territories are around the same number of works of art and collectables set in as Georgia ?
(c(Q838948)|c(Q2342494),P840,c(Q852446))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action find_reverse_tuple_counts
relation P840
type Q852446
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1428
relation P840
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?l WHERE { ?a rdf:type ?e . VALUES ( ?e ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:P840 resource:Q1428 . { { ?q rdf:type ontology:Q838948 } UNION { ?q rdf:type ontology:Q2342494 } } } } . FILTER ( ?x = ?u ) }
Georgia
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type work of art
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type collectable
action count
action filter_multi_types
action find_reverse
entity Georgia
relation narrative location
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?l WHERE { ?a rdf:type ?e . VALUES ( ?e ) { ( ontology:work_of_art ) ( ontology:collectable ) } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:narrative_location resource:Georgia . { { ?q rdf:type ontology:work_of_art } UNION { ?q rdf:type ontology:collectable } } } } . FILTER ( ?x = ?u ) }
[]
administrative territorial entity of the United States work of art collectable
SYSTEM
45
Q1397 Q43421 Q829 Q1603 Q1391 Q7886863 Q5000330 Q724 Q1581 Q1537 Q1370 Q1612 Q1454 Q3474463 Q1415 Q782 Q1527 Q1546 Q1204 Q1522 Q824 Q1227 Q1223 Q1166 Q816 Q771 Q1207 Q1509 Q1371 Q1261 Q779 Q1428 Q38555 Q759 Q1558 Q14710458 Q1588 Q173 Q523606 Q797 Q4705487 Q1212 Q1553 Q1211 Q16551
(c(Q838948)|c(Q2342494),P840,c(Q852446))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action find_reverse_tuple_counts
relation P840
type Q852446
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1428
relation P840
type Q838948
type Q2342494
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?l WHERE { ?a rdf:type ?e . VALUES ( ?e ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:P840 resource:Q1428 . { { ?q rdf:type ontology:Q838948 } UNION { ?q rdf:type ontology:Q2342494 } } } } . FILTER ( ?x = ?u ) }
Ohio Richmond Utah Kentucky Maryland Unionville Burr Oak, Iowa Maine Missouri Wisconsin Virginia Arkansas North Carolina South Troy Indiana Hawaii Minnesota Iowa Illinois New Mexico Oregon Nevada Washington Michigan Arizona Massachusetts North Dakota Tennessee West Virginia Colorado Connecticut Georgia Santa Fe New Hampshire Kansas Esperanza Louisiana Alabama Langley Alaska Aladdin, Wyoming Montana Nebraska South Dakota Vermont
45
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type work of art
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type collectable
action count
action filter_multi_types
action find_reverse
entity Georgia
relation narrative location
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?l WHERE { ?a rdf:type ?e . VALUES ( ?e ) { ( ontology:work_of_art ) ( ontology:collectable ) } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:narrative_location resource:Georgia . { { ?q rdf:type ontology:work_of_art } UNION { ?q rdf:type ontology:collectable } } } } . FILTER ( ?x = ?u ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1227
P840
Q852446 Q838948 Q2342494
USER
And what about Nevada?
(c(Q838948)|c(Q2342494),P840,c(Q852446))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action find_reverse_tuple_counts
relation P840
type Q852446
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1227
relation P840
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) ?x WHERE { { ?a property:P840 ?x . ?x rdf:type ontology:Q852446 . ?a rdf:type ontology:Q838948 } UNION { ?x rdf:type ontology:Q852446 . ?a rdf:type ontology:Q2342494 . ?a property:P840 ?x } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { { { ?i rdf:type ontology:Q838948 } UNION { ?i rdf:type ontology:Q2342494 } } . ?i property:P840 resource:Q1227 } } . FILTER ( ?u = ?c ) }
Nevada
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type work of art
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type collectable
action count
action filter_multi_types
action find_reverse
entity Nevada
relation narrative location
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) ?x WHERE { { ?a property:narrative_location ?x . ?x rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?a rdf:type ontology:work_of_art } UNION { ?x rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?a rdf:type ontology:collectable . ?a property:narrative_location ?x } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { { { ?i rdf:type ontology:work_of_art } UNION { ?i rdf:type ontology:collectable } } . ?i property:narrative_location resource:Nevada } } . FILTER ( ?u = ?c ) }
[]
administrative territorial entity of the United States work of art collectable
SYSTEM
45
Q1397 Q43421 Q829 Q1603 Q1391 Q7886863 Q5000330 Q724 Q1581 Q1537 Q1370 Q1612 Q1454 Q3474463 Q1415 Q782 Q1527 Q1546 Q1204 Q1522 Q824 Q1227 Q1223 Q1166 Q816 Q771 Q1207 Q1509 Q1371 Q1261 Q779 Q1428 Q38555 Q759 Q1558 Q14710458 Q1588 Q173 Q523606 Q797 Q4705487 Q1212 Q1553 Q1211 Q16551
(c(Q838948)|c(Q2342494),P840,c(Q852446))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action find_reverse_tuple_counts
relation P840
type Q852446
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1227
relation P840
type Q838948
type Q2342494
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) ?x WHERE { { ?a property:P840 ?x . ?x rdf:type ontology:Q852446 . ?a rdf:type ontology:Q838948 } UNION { ?x rdf:type ontology:Q852446 . ?a rdf:type ontology:Q2342494 . ?a property:P840 ?x } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { { { ?i rdf:type ontology:Q838948 } UNION { ?i rdf:type ontology:Q2342494 } } . ?i property:P840 resource:Q1227 } } . FILTER ( ?u = ?c ) }
Ohio Richmond Utah Kentucky Maryland Unionville Burr Oak, Iowa Maine Missouri Wisconsin Virginia Arkansas North Carolina South Troy Indiana Hawaii Minnesota Iowa Illinois New Mexico Oregon Nevada Washington Michigan Arizona Massachusetts North Dakota Tennessee West Virginia Colorado Connecticut Georgia Santa Fe New Hampshire Kansas Esperanza Louisiana Alabama Langley Alaska Aladdin, Wyoming Montana Nebraska South Dakota Vermont
45
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type work of art
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type collectable
action count
action filter_multi_types
action find_reverse
entity Nevada
relation narrative location
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) ?x WHERE { { ?a property:narrative_location ?x . ?x rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?a rdf:type ontology:work_of_art } UNION { ?x rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?a rdf:type ontology:collectable . ?a property:narrative_location ?x } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { { { ?i rdf:type ontology:work_of_art } UNION { ?i rdf:type ontology:collectable } } . ?i property:narrative_location resource:Nevada } } . FILTER ( ?u = ?c ) }
[]