Simple Question (Direct)
Simple Question
Q452806
P27
Q1048835
USER
Which political territory is Austin Collie an inhabitant of ?
(Q452806,P27,c(Q1048835))
action filter_type
action find
entity Q452806
relation P27
type Q1048835
['Q452806', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q452806 property:P27 ?w . ?w rdf:type ontology:Q1048835 }
Austin Collie
action filter_type
action find
entity Austin Collie
relation country of citizenship
type political territorial entity
['Austin Collie', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Austin_Collie property:country_of_citizenship ?w . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q452806,P27,c(Q1048835))
action filter_type
action find
entity Q452806
relation P27
type Q1048835
To [ANSWER] is Austin Collie an inhabitant of
['Q452806', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q452806 property:P27 ?w . ?w rdf:type ontology:Q1048835 }
Canada
To Canada is Austin Collie an inhabitant of
Canada
action filter_type
action find
entity Austin Collie
relation country of citizenship
type political territorial entity
['Austin Collie', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Austin_Collie property:country_of_citizenship ?w . ?w rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q452806
P19
Q56061
USER
Which administrative territory was Austin Collie born in ?
(Q452806,P19,c(Q56061))
action filter_type
action find
entity Q452806
relation P19
type Q56061
['Q452806', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q452806 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Austin Collie
action filter_type
action find
entity Austin Collie
relation place of birth
type administrative territorial entity
['Austin Collie', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Austin_Collie property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q133116
SYSTEM
Hamilton
Q133116
(Q452806,P19,c(Q56061))
action filter_type
action find
entity Q452806
relation P19
type Q56061
Austin Collie was born in [ANSWER]
['Q452806', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q452806 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Hamilton
Austin Collie was born in Hamilton
Hamilton
action filter_type
action find
entity Austin Collie
relation place of birth
type administrative territorial entity
['Austin Collie', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Austin_Collie property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q133116
P47
Q56061
USER
Which administrative territory is bordered by that one ?
(c(Q56061),P47,Q133116)
action filter_type
action find_reverse
entity Q133116
relation P47
type Q56061
[{'concept': 'Q56061'}, 'P47', 'Q133116']
SELECT DISTINCT ?t WHERE { ?t property:P47 resource:Q133116 . ?t rdf:type ontology:Q56061 }
Hamilton
action filter_type
action find_reverse
entity Hamilton
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Hamilton']
SELECT DISTINCT ?t WHERE { ?t property:shares_border_with resource:Hamilton . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q424901
SYSTEM
Grimsby
Q424901
(c(Q56061),P47,Q133116)
action filter_type
action find_reverse
entity Q133116
relation P47
type Q56061
[ANSWER] is bordered by that one
[{'concept': 'Q56061'}, 'P47', 'Q133116']
SELECT DISTINCT ?t WHERE { ?t property:P47 resource:Q133116 . ?t rdf:type ontology:Q56061 }
Grimsby
Grimsby is bordered by that one
Grimsby
action filter_type
action find_reverse
entity Hamilton
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Hamilton']
SELECT DISTINCT ?t WHERE { ?t property:shares_border_with resource:Hamilton . ?t rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q424901
P17
Q1048835
USER
Which political territory is that administrative territory present in ?
(Q424901,P17,c(Q1048835))
action filter_type
action find
entity Q424901
relation P17
type Q1048835
['Q424901', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q424901 property:P17 ?a . ?a rdf:type ontology:Q1048835 }
Grimsby
action filter_type
action find
entity Grimsby
relation country
type political territorial entity
['Grimsby', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Grimsby property:country ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q424901,P17,c(Q1048835))
action filter_type
action find
entity Q424901
relation P17
type Q1048835
That administrative territory is of [ANSWER]
['Q424901', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q424901 property:P17 ?a . ?a rdf:type ontology:Q1048835 }
Canada
That administrative territory is of Canada
Canada
action filter_type
action find
entity Grimsby
relation country
type political territorial entity
['Grimsby', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Grimsby property:country ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q1048835 Q201658 Q838948
USER
Which political territories are the countries of origin of approximately 2479 film genres and works of art ?
(c(Q201658)|c(Q838948),P495,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q201658
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
value 2479
[[{'concept': 'Q201658'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?m WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:Q201658 ) ( ontology:Q838948 ) } } GROUP BY ?m } . FILTER ( ?s = 2479 ) }
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type work of art
value 2479
[[{'concept': 'film genre'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?m WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:film_genre ) ( ontology:work_of_art ) } } GROUP BY ?m } . FILTER ( ?s = 2479 ) }
[]
political territorial entity film genre work of art
Q16 Q408
SYSTEM
Canada, Australia
Q16 Q408
(c(Q201658)|c(Q838948),P495,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q201658
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
value 2479
[ANSWERS] are the countries of origin of approximately 2479 film genres and works of art
[[{'concept': 'Q201658'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?m WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:Q201658 ) ( ontology:Q838948 ) } } GROUP BY ?m } . FILTER ( ?s = 2479 ) }
Canada Australia
Canada and Australia are the countries of origin of approximately 2479 film genres and works of art
Canada Australia
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type work of art
value 2479
[[{'concept': 'film genre'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?m WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:film_genre ) ( ontology:work_of_art ) } } GROUP BY ?m } . FILTER ( ?s = 2479 ) }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q1784233 Q16
P530 P27
Q15617994
USER
Which administrative territories holds diplomatic relationship with Canada and are not the countries of citizenship of Koray Şanlı ?
AND((Q16,P530,c(Q15617994)), NOT((Q1784233,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q16
relation P530
action find
entity Q1784233
relation P27
type Q15617994
{'AND': [['Q16', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q1784233', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?s WHERE { resource:Q16 property:P530 ?s . MINUS { resource:Q1784233 property:P27 ?s } . ?s rdf:type ontology:Q15617994 }
Koray Şanlı Canada
action filter_type
action difference
action find
entity Canada
relation diplomatic relation
action find
entity Koray Şanlı
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Koray Şanlı', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?s WHERE { resource:Canada property:diplomatic_relation ?s . MINUS { resource:Koray_Şanlı property:country_of_citizenship ?s } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q79 Q928 Q1030 Q229 Q77 Q878 Q258 Q159 Q801 Q36
SYSTEM
Some of them are Egypt, Philippines, Namibia, Cyprus, Uruguay, United Arab Emirates, South Africa, Russia, Israel, Poland
Q804 Q801 Q843 Q1029 Q1028 Q145 Q229 Q33 Q30 Q36 Q79 Q34 Q928 Q39 Q38 Q878 Q739 Q833 Q711 Q1030 Q851 Q29999 Q77 Q115 Q258 Q212 Q159 Q155 Q218 Q20 Q423 Q252 Q884
AND((Q16,P530,c(Q15617994)), NOT((Q1784233,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q16
relation P530
action find
entity Q1784233
relation P27
type Q15617994
[ANSWERS] hold diplomatic relationship with Canada and are not the countries of citizenship of Koray Şanlı
{'AND': [['Q16', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q1784233', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?s WHERE { resource:Q16 property:P530 ?s . MINUS { resource:Q1784233 property:P27 ?s } . ?s rdf:type ontology:Q15617994 }
Panama Israel Pakistan Mozambique Morocco United Kingdom Cyprus Finland United States of America Poland Egypt Sweden Philippines Switzerland Italy United Arab Emirates Colombia Malaysia Mongolia Namibia Saudi Arabia Kingdom of the Netherlands Uruguay Ethiopia South Africa Ukraine Russia Brazil Romania Norway North Korea Indonesia South Korea
Egypt, Philippines, Namibia, Cyprus, Uruguay, United Arab Emirates, South Africa, Russia, Israel and Poland hold diplomatic relationship with Canada and are not the countries of citizenship of Koray Şanlı
Egypt Philippines Namibia Cyprus Uruguay United Arab Emirates South Africa Russia Israel Poland
action filter_type
action difference
action find
entity Canada
relation diplomatic relation
action find
entity Koray Şanlı
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Koray Şanlı', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?s WHERE { resource:Canada property:diplomatic_relation ?s . MINUS { resource:Koray_Şanlı property:country_of_citizenship ?s } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q15436640 Q16
P530 P27
Q1048835
USER
Which political territories have diplomatic relationships with Canada and do Hans Hilbk belong to ?
AND((Q16,P530,c(Q1048835)), (Q15436640,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q16
relation P530
action find
entity Q15436640
relation P27
type Q1048835
{'AND': [['Q16', 'P530', {'concept': 'Q1048835'}], ['Q15436640', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1048835 . resource:Q16 property:P530 ?a . resource:Q15436640 property:P27 ?a }
Hans Hilbk Canada
action filter_type
action intersection
action find
entity Canada
relation diplomatic relation
action find
entity Hans Hilbk
relation country of citizenship
type political territorial entity
{'AND': [['Canada', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Hans Hilbk', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:political_territorial_entity . resource:Canada property:diplomatic_relation ?a . resource:Hans_Hilbk property:country_of_citizenship ?a }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q16,P530,c(Q1048835)), (Q15436640,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q16
relation P530
action find
entity Q15436640
relation P27
type Q1048835
[ANSWER] have diplomatic relationships with Canada and do Hans Hilbk belong to
{'AND': [['Q16', 'P530', {'concept': 'Q1048835'}], ['Q15436640', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1048835 . resource:Q16 property:P530 ?a . resource:Q15436640 property:P27 ?a }
Germany
Germany have diplomatic relationships with Canada and do Hans Hilbk belong to
Germany
action filter_type
action intersection
action find
entity Canada
relation diplomatic relation
action find
entity Hans Hilbk
relation country of citizenship
type political territorial entity
{'AND': [['Canada', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Hans Hilbk', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:political_territorial_entity . resource:Canada property:diplomatic_relation ?a . resource:Hans_Hilbk property:country_of_citizenship ?a }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q214177 Q229
P463
Q43229
USER
Which organizations were Cyprus or Maximilian Stoll a member of ?
OR((Q229,P463,c(Q43229)), (Q214177,P463,c(Q43229)))
action filter_type
action union
action find
entity Q229
relation P463
action find
entity Q214177
relation P463
type Q43229
{'OR': [['Q229', 'P463', {'concept': 'Q43229'}], ['Q214177', 'P463', {'concept': 'Q43229'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q229 property:P463 ?z } UNION { resource:Q214177 property:P463 ?z } } . ?z rdf:type ontology:Q43229 }
Maximilian Stoll Cyprus
action filter_type
action union
action find
entity Cyprus
relation member of
action find
entity Maximilian Stoll
relation member of
type organization
{'OR': [['Cyprus', 'member of', {'concept': 'organization'}], ['Maximilian Stoll', 'member of', {'concept': 'organization'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Cyprus property:member_of ?z } UNION { resource:Maximilian_Stoll property:member_of ?z } } . ?z rdf:type ontology:organization }
[]
organization
Q191384 Q133957 Q899770 Q656801 Q7825 Q827525
SYSTEM
International Bank for Reconstruction and Development, Bavarian Illuminati, International Centre for Settlement of Investment Disputes, International Finance Corporation, World Trade Organization, International Development Association
Q191384 Q133957 Q899770 Q656801 Q7825 Q827525
OR((Q229,P463,c(Q43229)), (Q214177,P463,c(Q43229)))
action filter_type
action union
action find
entity Q229
relation P463
action find
entity Q214177
relation P463
type Q43229
Were [ANSWERS] were Cyprus or Maximilian Stoll a member of
{'OR': [['Q229', 'P463', {'concept': 'Q43229'}], ['Q214177', 'P463', {'concept': 'Q43229'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q229 property:P463 ?z } UNION { resource:Q214177 property:P463 ?z } } . ?z rdf:type ontology:Q43229 }
International Bank for Reconstruction and Development Bavarian Illuminati International Centre for Settlement of Investment Disputes International Finance Corporation World Trade Organization International Development Association
Were International Bank for Reconstruction and Development, Bavarian Illuminati, International Centre for Settlement of Investment Disputes, International Finance Corporation, World Trade Organization and International Development Association were Cyprus or Maximilian Stoll a member of
International Bank for Reconstruction and Development Bavarian Illuminati International Centre for Settlement of Investment Disputes International Finance Corporation World Trade Organization International Development Association
action filter_type
action union
action find
entity Cyprus
relation member of
action find
entity Maximilian Stoll
relation member of
type organization
{'OR': [['Cyprus', 'member of', {'concept': 'organization'}], ['Maximilian Stoll', 'member of', {'concept': 'organization'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Cyprus property:member_of ?z } UNION { resource:Maximilian_Stoll property:member_of ?z } } . ?z rdf:type ontology:organization }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q90 Q79
P840
Q838948
USER
Which works of art have their narrative set in Egypt and Paris ?
AND((c(Q838948),P840,Q79), (c(Q838948),P840,Q90))
action filter_type
action intersection
action find_reverse
entity Q79
relation P840
action find_reverse
entity Q90
relation P840
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P840', 'Q79'], [{'concept': 'Q838948'}, 'P840', 'Q90']]}
SELECT DISTINCT ?r WHERE { ?r property:P840 resource:Q79 . ?r property:P840 resource:Q90 . ?r rdf:type ontology:Q838948 }
Paris Egypt
action filter_type
action intersection
action find_reverse
entity Egypt
relation narrative location
action find_reverse
entity Paris
relation narrative location
type work of art
{'AND': [[{'concept': 'work of art'}, 'narrative location', 'Egypt'], [{'concept': 'work of art'}, 'narrative location', 'Paris']]}
SELECT DISTINCT ?r WHERE { ?r property:narrative_location resource:Egypt . ?r property:narrative_location resource:Paris . ?r rdf:type ontology:work_of_art }
[]
work of art
Q431660 Q907640 Q1189436 Q129068
SYSTEM
Godzilla: Final Wars, Team America: World Police, OSS 117: Cairo, Nest of Spies, Retro Puppet Master
Q431660 Q907640 Q1189436 Q129068
AND((c(Q838948),P840,Q79), (c(Q838948),P840,Q90))
action filter_type
action intersection
action find_reverse
entity Q79
relation P840
action find_reverse
entity Q90
relation P840
type Q838948
[ANSWERS] have their narrative set in Egypt and Paris
{'AND': [[{'concept': 'Q838948'}, 'P840', 'Q79'], [{'concept': 'Q838948'}, 'P840', 'Q90']]}
SELECT DISTINCT ?r WHERE { ?r property:P840 resource:Q79 . ?r property:P840 resource:Q90 . ?r rdf:type ontology:Q838948 }
Godzilla: Final Wars Team America: World Police OSS 117: Cairo, Nest of Spies Retro Puppet Master
Godzilla: Final Wars, Team America: World Police, OSS 117: Cairo, Nest of Spies and Retro Puppet Master have their narrative set in Egypt and Paris
Godzilla: Final Wars Team America: World Police OSS 117: Cairo, Nest of Spies Retro Puppet Master
action filter_type
action intersection
action find_reverse
entity Egypt
relation narrative location
action find_reverse
entity Paris
relation narrative location
type work of art
{'AND': [[{'concept': 'work of art'}, 'narrative location', 'Egypt'], [{'concept': 'work of art'}, 'narrative location', 'Paris']]}
SELECT DISTINCT ?r WHERE { ?r property:narrative_location resource:Egypt . ?r property:narrative_location resource:Paris . ?r rdf:type ontology:work_of_art }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q229432
P941
Q502895 Q15850590 Q15416
USER
Which people inspired more number of theatrical genres and television programs than Lucretia ?
(c(Q15850590)|c(Q15416),P941,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15850590
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q229432
relation P941
type Q15850590
type Q15416
[[{'concept': 'Q15850590'}, {'concept': 'Q15416'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?t ) WHERE { VALUES ( ?l ) { ( ontology:Q15416 ) ( ontology:Q15850590 ) } . ?p rdf:type ?l } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { { ?f rdf:type ontology:Q15850590 } UNION { ?f rdf:type ontology:Q15416 } } . ?f property:P941 resource:Q229432 } } . FILTER ( ?t > ?a ) }
Lucretia
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type theatrical genre
action find_reverse_tuple_counts
relation inspired by
type common name
type television program
action count
action filter_multi_types
action find_reverse
entity Lucretia
relation inspired by
type theatrical genre
type television program
[[{'concept': 'theatrical genre'}, {'concept': 'television program'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?t ) WHERE { VALUES ( ?l ) { ( ontology:television_program ) ( ontology:theatrical_genre ) } . ?p rdf:type ?l } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { { ?f rdf:type ontology:theatrical_genre } UNION { ?f rdf:type ontology:television_program } } . ?f property:inspired_by resource:Lucretia } } . FILTER ( ?t > ?a ) }
[]
common name theatrical genre television program
Q312502 Q123075 Q5675905
SYSTEM
Fiorello H. La Guardia, Robert Walser, Andrés López Muñoz
Q312502 Q3560424 Q5675905 Q123075
(c(Q15850590)|c(Q15416),P941,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15850590
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q229432
relation P941
type Q15850590
type Q15416
[ANSWERS] inspired more number of theatrical genres and television programs than Lucretia
[[{'concept': 'Q15850590'}, {'concept': 'Q15416'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?t ) WHERE { VALUES ( ?l ) { ( ontology:Q15416 ) ( ontology:Q15850590 ) } . ?p rdf:type ?l } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { { ?f rdf:type ontology:Q15850590 } UNION { ?f rdf:type ontology:Q15416 } } . ?f property:P941 resource:Q229432 } } . FILTER ( ?t > ?a ) }
Fiorello H. La Guardia Violet Gordon-Woodhouse Andrés López Muñoz Robert Walser
Fiorello H. La Guardia, Robert Walser and Andrés López Muñoz inspired more number of theatrical genres and television programs than Lucretia
Fiorello H. La Guardia Robert Walser Andrés López Muñoz
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type theatrical genre
action find_reverse_tuple_counts
relation inspired by
type common name
type television program
action count
action filter_multi_types
action find_reverse
entity Lucretia
relation inspired by
type theatrical genre
type television program
[[{'concept': 'theatrical genre'}, {'concept': 'television program'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?t ) WHERE { VALUES ( ?l ) { ( ontology:television_program ) ( ontology:theatrical_genre ) } . ?p rdf:type ?l } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { { ?f rdf:type ontology:theatrical_genre } UNION { ?f rdf:type ontology:television_program } } . ?f property:inspired_by resource:Lucretia } } . FILTER ( ?t > ?a ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1288359
P941
Q502895 Q15850590 Q15416
USER
And what about Félix González-Torres?
(c(Q15850590)|c(Q15416),P941,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15850590
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q1288359
relation P941
type Q15850590
type Q15416
[[{'concept': 'Q15850590'}, {'concept': 'Q15416'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?e ) WHERE { { ?s property:P941 ?q . ?q rdf:type ontology:Q502895 . ?s rdf:type ontology:Q15850590 } UNION { ?s property:P941 ?q . ?q rdf:type ontology:Q502895 . ?s rdf:type ontology:Q15416 } } GROUP BY ?q } . FILTER ( ?e > ?k ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { ?t property:P941 resource:Q1288359 . { { ?t rdf:type ontology:Q15850590 } UNION { ?t rdf:type ontology:Q15416 } } } } }
Félix González-Torres
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type theatrical genre
action find_reverse_tuple_counts
relation inspired by
type common name
type television program
action count
action filter_multi_types
action find_reverse
entity Félix González-Torres
relation inspired by
type theatrical genre
type television program
[[{'concept': 'theatrical genre'}, {'concept': 'television program'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?e ) WHERE { { ?s property:inspired_by ?q . ?q rdf:type ontology:common_name . ?s rdf:type ontology:theatrical_genre } UNION { ?s property:inspired_by ?q . ?q rdf:type ontology:common_name . ?s rdf:type ontology:television_program } } GROUP BY ?q } . FILTER ( ?e > ?k ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { ?t property:inspired_by resource:Félix_González-Torres . { { ?t rdf:type ontology:theatrical_genre } UNION { ?t rdf:type ontology:television_program } } } } }
[]
common name theatrical genre television program
Q312502 Q123075 Q5675905
SYSTEM
Fiorello H. La Guardia, Robert Walser, Andrés López Muñoz
Q312502 Q3560424 Q5675905 Q123075
(c(Q15850590)|c(Q15416),P941,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15850590
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q1288359
relation P941
type Q15850590
type Q15416
[ANSWERS]
[[{'concept': 'Q15850590'}, {'concept': 'Q15416'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?e ) WHERE { { ?s property:P941 ?q . ?q rdf:type ontology:Q502895 . ?s rdf:type ontology:Q15850590 } UNION { ?s property:P941 ?q . ?q rdf:type ontology:Q502895 . ?s rdf:type ontology:Q15416 } } GROUP BY ?q } . FILTER ( ?e > ?k ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { ?t property:P941 resource:Q1288359 . { { ?t rdf:type ontology:Q15850590 } UNION { ?t rdf:type ontology:Q15416 } } } } }
Fiorello H. La Guardia Violet Gordon-Woodhouse Andrés López Muñoz Robert Walser
Fiorello H. La Guardia Robert Walser Andrés López Muñoz
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type theatrical genre
action find_reverse_tuple_counts
relation inspired by
type common name
type television program
action count
action filter_multi_types
action find_reverse
entity Félix González-Torres
relation inspired by
type theatrical genre
type television program
[[{'concept': 'theatrical genre'}, {'concept': 'television program'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?e ) WHERE { { ?s property:inspired_by ?q . ?q rdf:type ontology:common_name . ?s rdf:type ontology:theatrical_genre } UNION { ?s property:inspired_by ?q . ?q rdf:type ontology:common_name . ?s rdf:type ontology:television_program } } GROUP BY ?q } . FILTER ( ?e > ?k ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { ?t property:inspired_by resource:Félix_González-Torres . { { ?t rdf:type ontology:theatrical_genre } UNION { ?t rdf:type ontology:television_program } } } } }
[]